大叔经验分享(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

 

posted @   匠人先生  阅读(645)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示