启动hiveserver2之后,使用如下命令连接hive:
bin/beeline -u jdbc:hive2://hadoop03:10000 -n hadoop
报错:
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中配置了:
在hive-site.xml中配置了:
<property>
<name>hive.server2.authenti