Starting hiveserver2

2019-03-29 13:03发布

I am trying to run hiveserver2 on my hadoop cluster so that I can access hive using jdbc. I run the following command: $HIVE_HOME/bin/hiveserver2. This doesn't log anything to STDOUTPUT but starts a process which is running, however I can't see any tcp sockets listening on the port 10000.

Turns out no socket is open for the process that hiveserver2 is running in.

How do I start hiveserver2?

标签: hadoop hive
2条回答
smile是对你的礼貌
2楼-- · 2019-03-29 13:16

try running :
hive --service hiveserver2 --hiveconf hive.server2.thrift.port=10000 --hiveconf hive.root.logger=INFO,console
This will start hiveserver2, on port 10000 and output the logs to console.

查看更多
时光不老,我们不散
3楼-- · 2019-03-29 13:25

Use below command to run hiveserver2 :

sudo su hduser

cd /usr/local/apache-hive-2.0.1-bin/bin

hive --service hiveserver2
查看更多
登录 后发表回答