命令
nohup hive --service hiveserver2 &
hive默认账号密码
如果没进行特殊设置的话, hive默认账号密码是 NONE
使用beeline进行连接
打开另外一个crt终端
[root@zjj101 ~]# beeline
Beeline version 1.2.1 by Apache Hive
beeline> !connect jdbc:hive2://ip:10000/default
Connecting to jdbc:hive2://ip:10000/default
Enter username for jdbc:hive2://ip:10000/default: NONE
Enter password for jdbc:hive2://ip:10000/default: ****
Connected to: Apache Hive (version 1.2.1)
Driver: Hive JDBC (version 1.2.1)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://ip:10000/default>