使用beeline连接hive

kinit -kt xxx.keytab xxx
beeline -u "jdbc:hive2://10.65.13.98:10000/default;principal=hive/_HOST@CLOUDERA.SITE"

参考:

https://docs.cloudera.com/runtime/7.2.7/securing-hive/topics/hive_remote_data_access.html

如果要想直接运行SQL,可以

beeline -u "jdbc:hive2://10.65.13.98:10000/default;principal=hive/_HOST@CLOUDERA.SITE" --silent=true --outputformat=tsv2 --showHeader=false -e "select * from xxx.xxx"

退出beeline

!quit

  

相关文章:

  • 2021-09-18
  • 2020-04-01
  • 2020-04-02
  • 2021-07-10
猜你喜欢
  • 2021-11-01
  • 2021-09-19
  • 2022-01-29
  • 2022-12-23
  • 2021-12-10
  • 2021-12-06
相关资源
相似解决方案