Hadoop启动/关闭:start-all.sh / stop-all.sh
HDFS:start-dfs.sh / stop-dfs.sh
YARN:start-yarn.sh / stop-yarn.sh
hive 启动metastore服务: 前台启动 /export/server/apache-3.1.2-bin/bin/hive --service metastore
后台启动 nohup /export/server/apache-hive-3.1.2-bin/bin/hive --service metastore &
关闭metastore服务: 关闭前台启动 ctrl+c
关闭后台启动 kill -9 端口号
启动hiveserver2服务: 前台启动 /export/server/apache-3.1.2-bin/bin/hive --service hiveserver2
后台启动 nohup /export/server/apache-hive-3.1.2-bin/bin/hive --service hiveserver2 &
启动hive:(第一代) /export/server/apache-hive-3.1.2-bin/bin/hive
(第二代) /export/server/apache-hive-3.1.2-bin/bin/beeline
! connect jdbc:hive2://node1:10000 root(无密码)