Hive交互shell

bin/hive

 

Hive JDBC服务

hive也可以启动为一个服务器,来对外提供

 大数据学习——hive使用

 

启动方式,(假如是在itcast01上):

启动为前台:bin/hiveserver2

启动为后台:nohup bin/hiveserver2 1>/var/log/hiveserver.log 2>/var/log/hiveserver.err &

 

启动成功后,可以在别的节点上用beeline去连接

v  方式(1)

hive/bin/beeline  回车,进入beeline的命令界面

输入命令连接hiveserver2

beeline> !connect jdbc:hive2://itcast01:10000

(itcast01是hiveserver2所启动的那台主机名,端口默认是10000)

v  方式(2)

或者启动就连接:

bin/beeline -u jdbc:hive2://itcast01:10000 -n root

 

接下来就可以做正常sql查询了

相关文章:

  • 2022-01-18
  • 2021-08-13
  • 2021-12-03
  • 2021-06-23
  • 2021-04-10
  • 2021-05-16
  • 2021-06-09
  • 2021-07-20
猜你喜欢
  • 2021-09-27
  • 2021-06-18
  • 2021-10-03
  • 2021-06-25
  • 2021-07-02
  • 2022-01-11
相关资源
相似解决方案