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

hive-server2创建了一个新线程,每次启动查询时该线程都不会退出,hive,apache-zookeeper,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-serv

我正在调查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在hive中的用途)。在动物园管理员的日志中,我看到了以下信息:

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

请帮我解决这个问题

尝试注释hive-site.xml中的属性“hive.server2.enable.doAs”


我也有同样的问题。我删除了zookeeper中的/hive\u zookeeper\u名称空间,它似乎工作正常