hive的安装使用总结

折腾了三天,断断续续,到今天周五,终于搞定了,
安装好Hive后,执行bin中的hive即可进入直接输入 show tables;
或者先启动hiveserver2,然后运行beeline,然后连接DB,执行show tables;
连接DB的语句: !connect jdbc:hive2://host:10000
用户名密码直接用配置好的的MySQL用户名密码即可

 
    

beeline> show tables;
No current connection
beeline> !connect jdbc:hive2://host:10000
Connecting to jdbc:hive2://host:10000
Enter username for jdbc:hive2://host:10000: hadoop
Enter password for jdbc:hive2://host:10000:
Connected to: Apache Hive (version 1.2.1)
Driver: Hive JDBC (version 1.2.1)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://host:10000> show tables;
+-----------+--+
| tab_name |
+-----------+--+
+-----------+--+
No rows selected (1.936 seconds)


你可能感兴趣的:(bigdata,nosql)