大叔经验分享(38)beeline连接hiveserver2报错impersonate
beeline连接hiveserver2报错
Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: test is not allowed to impersonate anonymous (state=08S01,code=0)
解决方法
core-site.xml
<property>
<name>hadoop.proxyuser.test.groups</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.test.hosts</name>
<value>*</value>
</property>
这里是test用户,其他用户自行调整,即执行beeline的用户名,修改完成后重启hdfs和yarn
---------------------------------------------------------------- 结束啦,我是大魔王先生的分割线 :) ----------------------------------------------------------------
- 由于大魔王先生能力有限,文中可能存在错误,欢迎指正、补充!
- 感谢您的阅读,如果文章对您有用,那么请为大魔王先生轻轻点个赞,ありがとう