问题描述
我正在尝试在hadoop集群上运行hiveserver2,以便可以使用jdbc访问hive.我运行以下命令:$ HIVE_HOME/bin/hiveserver2.这不会向STDOUTPUT记录任何内容,但是会启动一个正在运行的进程,但是我看不到任何10000端口监听的tcp套接字.
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.
结果表明没有hiveserver2正在运行的进程打开的套接字.
Turns out no socket is open for the process that hiveserver2 is running in.
如何启动hiveserver2?
How do I start hiveserver2?
推荐答案
尝试运行:hive --service hiveserver2 --hiveconf hive.server2.thrift.port=10000 --hiveconf hive.root.logger=INFO,console
这将在端口10000上启动hiveserver2并将日志输出到控制台.
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.
这篇关于启动hiveserver2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!