hive-server2创建一个新的线程,每次启动查询时都不会退出

时间:2014-04-25 13:20:47

标签: hive apache-zookeeper

我正在调查hive-server2的一个奇怪问题。每次启动查询时,hive-server2都会创建一个新线程。

 # I'm seeing the output of this command augmenting each time I launch a query
 ps -eLF | grep hive HiveServer2 | wc -l

机器hive-server2迟早会因内存不足而运行,我无法再启动查询。

从我所看到的,这个问题可能与Zookeeper有关。每个hive-server2线程都打开一个与zookeeper的连接(我正在使用hive.support.concurrency = true。这就是zookeeper用于配置单元)。在Zookeeper的日志中,我看到了这些消息:

2014-04-25 15:01:32,278 [myid:] - INFO  
[ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@627] - 
Got user-level KeeperException when processing sessionid:0x14598934389005c 
type:create cxid:0x1 zxid:0xbfc0 txntype:-1 reqpath:n/a 
Error Path:/hive_zookeeper_namespace 
Error:KeeperErrorCode = NodeExists for /hive_zookeeper_namespace

请帮我解决这个问题。

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

我有同样的问题。我在zookeeper上删除了/ hive_zookeeper_namespace,它似乎工作正常。