Hive连接报错Unexpected end of file when reading from HS2 server.

启动Hiveserver2后尝试通过beeline连接Hive时出现'Unexpected end of file when reading from HS2 server.'的错误。错误可能由过多并发连接引起。解决方案是在beeline界面使用'!connect'命令并指定'auth=noSasl'属性进行连接,或者在jdbc连接字符串中添加'auth=noSasl'。同时,检查'hive.server2.authentication'配置是否为'NOSASL'。
摘要由CSDN通过智能技术生成
启动hiveserver2之后,使用如下命令连接hive:
          bin/beeline -u jdbc:hive2://hadoop03:10000 -n hadoop
报错:
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.
Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop03:10000: null (state=08S01,code=0)

使用hive jdbc连接也报错:
java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://192.168.96.183:10000/default;: null
Caused by: org.apache.thrift.transport.TTransportException

原因是:
在hive-site.xml中配置了:
<property>
          <name>hive.server2.authenti
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值