1. 程式人生 > >【原創】大叔經驗分享(38)beeline連接hiveserver2報錯impersonate

【原創】大叔經驗分享(38)beeline連接hiveserver2報錯impersonate

anon hdfs sts 經驗分享 property could could not val sta

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

【原創】大叔經驗分享(38)beeline連接hiveserver2報錯impersonate