使用Beeline连接Hive

服务端启动hiveserver2 [root@node04 ~]# hiveserver2
客户端进入beeline并连接

[root@node03 ~]# beeline

Beeline version 1.2.1 by Apache Hive

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

Connecting to jdbc:hive2://node04:10000 Enter username for jdbc:hive2://node04:10000: root

Enter password for jdbc:hive2://node04:10000: ******

Connected to: Apache Hive (version 1.2.1) Driver:

Hive JDBC (version 1.2.1) Transaction isolation: TRANSACTION_REPEATABLE_READ 0: jdbc:hive2://node04:10000>

退出连接 0: jdbc:hive2://node04:10000> !quit

原文链接:https://blog.csdn.net/paulfrank_zhang/article/details/80735633

上一篇:hive cli转hive beeline的几个例子


下一篇:hive beeline hivevar和hiveconf的区别