0

我有一个很奇怪的问题。我确实有一个免费安装了 Cloudera 管理器的 CDH 4.1.1 集群。Beeswax 工作正常,hive CLI 实用程序工作正常。

并非没有任何东西监听端口 10000(Hive JDBC 连接的默认端口)。我确实有独立的测试 CDH 4.1.1 VMWare 映像(您可以从 Cloudera 站点下载它)。有同样的情况,但是打开了 10000,我可以查询 Hive。

我做错了什么?为什么10000被关闭?我必须做什么才能让它在我的集群上工作?

4

1 回答 1

0

好的,所以 CDH 4.1.1 演示映像确实将 Hive Thrift 服务器作为服务运行。如果我们正在使用受 Cloudera manager free 控制的 CDH 集群,我们必须这样做:

转到Cloodera 管理器免费 (CMFree)

*服务”

服务色调1»*

填写字段:Hive 配置安全阀

<property>
<name>hive.server2.thrift.min.worker.threads</name>
<value>5</value>
</property>

<property>
<name>hive.server2.thrift.max.worker.threads</name>
<value>100</value>
</property>

<property>
<name>hive.server2.thrift.port</name>
<value>10000</value>
</property>

<property>
<name>hive.server2.thrift.bind.host</name>
<value>10.66.48.23</value>
</property>

<property>
<name>hive.server2.authentication</name>
<value>NONE</value>
</property>

<!-- TODO: add concurrency support-->
<property>
<name>hive.support.concurrency</name>
<value>false</value><!-- -should be true -->
</property>

<!-- do it later
<property>
<name>hive.zookeeper.quorum</name>
<description>Zookeeper quorum used by Hive's Table Lock Manager</description>
<value>zk1.yoyodyne.com,zk2.yoyodyne.com,zk3.yoyodyne.com</value>
</property>
-->

重启服务

然后启动 hive thrift 服务器:

[devops@cdh-1 ~]$ sudo -u hdfs /usr/bin/hive --service hiveserver

在这里你可以看到它是如何在 CentOS 上被“妖魔化”的

http://blog.milford.io/2010/06/daemonizing-the-apache-hive-thrift-server-on-centos/

于 2012-12-25T11:25:30.760 回答