其他分享
首页 > 其他分享> > [已解决]报错:Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000

[已解决]报错:Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000

作者:互联网

报错内容:

Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop102:10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: hank is not allowed to impersonate hank (state=08S01,code=0)

解决方案:
在hadoop文件core-site.xml中配置信息如下,重启Hadoop,再次启动hiveserver2和beeline即可

把下面的root替换成自己的用户名

<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
</property>

标签:JDBC,10000,root,hadoop,报错,hive2,open
来源: https://www.cnblogs.com/hankleo/p/14727029.html