如何正确地开启hiveserver2服务
1、开启hadoop服务
主目录输入下面的语句即可:
start-all.sh
使用jps命令查看进程,即可确定hadoop是否已经启动;
2、开启hive的metastore服务
nohup /export/server/apache-hive-3.1.2-bin/bin/hive --service metastore &
然后开启hiveserver2服务:
nohup /export/server/apache-hive-3.1.2-bin/bin/hive --service hiveserver2 &
然后输入jps,查看进程是否增多了两个RunJar进程;
若是,则hiveserver2服务启动成功;