我通过php think thrift连接到hive所以我想启动hiveserver2但是如果我使用hive命令启动hiveserver2
hive --service hiveserver2 --hiveconf hive.server2.thrift.port=10000 --hiveconf hive.root.logger=INFO,console
我总是需要通过 Ctrl + C
停止hiveserver2我通过服务命令启动找到了一种新方法我试着
service hive-server2 start
service hiveserver2 start
但我收到错误:hiveserver2: unrecognized service
任何人都可以帮我解决如何使用service命令启动它吗?
答案 0 :(得分:0)
您始终可以通过以下命令
在后台运行hiveserver2nohup hive --service hiveserver2&