大三下打卡(2.19)
开启hadoop
start-all.sh
启动hive2
nohup /export/server/apache-hive-3.1.2-bin/bin/hive --service metastore &

nohup /export/server/apache-hive-3.1.2-bin/bin/hive --service hiveserver2 &

/export/server/apache-hive-3.1.2-bin/bin/hive

ps.进入hive后需要退出,到root再运行下面的beeline命令
/export/server/apache-hive-3.1.2-bin/bin/beeline
在beeline中继续运行下面命令
! connect jdbc:hive2://node1:10000
需要输入账号密码: 账号为root ,密码为空


浙公网安备 33010602011771号