1/ 启动
启动zookeeper:
三个节点上都zkServer.sh start
启动hdfs和yarn:
101上start-dfs.sh 102上start-yarn.sh
启动hive:
101上hive
再开一个101的窗口
hiveserver2 &
beeline -u jdbc:hive2://localhost:10000
2/停止
102上: /opt/module/hadoop-2.6.0/sbin/stop-yarn.sh
101上:stop-dfs.sh
三个节点上:zkServer.sh stop