[已解决]报错: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>
posted @ 2021-05-03 09:35  hank-li  阅读(3978)  评论(0编辑  收藏  举报