第一种:command Line

hive二种连接方式

hive二种连接方式


第二种hiveserver2/beeline

二台机器为例

hadoop01执行: nohup  bin/hiveserver2   1>/home/hadoop/var/log/hiveserver.log  2>/home/hadoop/var/log/hiveserver.err &

hadoop02执行   二步: 第一:./beeline  

第二: !connect jdbc:hive2://localhost:10000

成功截图

hive二种连接方式

用户名是hadoop 集群的用户名我的是hadoop


相关文章: