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