简体   繁体   English

蜂房旧货服务器挂起

[英]hive thrift server is hanging

I developed an application in that, I am connecting to hive server1 on 10000 port using JDBC. 我开发了一个应用程序,使用JDBC在10000端口上连接到配置单元server1。 After performing some DDL commands i'm closing the connection. 执行一些DDL命令后,我将关闭连接。

When I was testing this jar, after running it few times(it is working fine for few times), hive is hanging. 当我测试这个jar时,在运行了几次之后(它运行了好几次),蜂巢挂了。 Don't know the exact reason. 不知道确切原因。 I am using a pseudo cluster for this purpose. 我为此使用伪集群。

After killing the hive thrift server and restarting the hive(through cloudera manager) and thrift server from console it is working fine. 在杀死配置单元旧式服务器并从控制台重启配置单元(通过cloudera管理器)后,它可以正常工作。 Again after few times running the jar leading to hanging of hive. 几次运行后再次导致罐子挂起。

在hivesite.xml文件中设置以下hive属性将解决此异常。

<property> <name>hive.server2.enable.doAs</name> <value>false</value> </property>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM