其他分享
首页 > 其他分享> > beeline 连hive报Unexpected end of file when reading from HS2 server错误

beeline 连hive报Unexpected end of file when reading from HS2 server错误

作者:互联网

错误信息:

Unexpected end of file when reading from HS2 server. The root cause might be too many concurrent connections. Please ask the administrator to check the number of active connections, and adjust hive.server2.thrift.max.worker.threads if applicable.

原因:

在hive-site.xml中配置了: 
<property>           
<name>hive.server2.authentication</name>             
<value>NOSASL</value> 
</property>

解决方案:

将hive.server2.authentication 配置改为NONE或者beeline连接时用:/usr/bin/beeline -n platform  -u jdbc:hive2://xxxx:10501/tmp;auth=noSasl 

标签:Unexpected,end,when,server2,connections,hive,file,beeline
来源: https://blog.csdn.net/zhouyan8603/article/details/112501008