【Hive问题】Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteExceptio

轩辕经国
2023-12-01

【报错】

Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User:xiaosiis not allowed to impersonate anonymous

【解决】

hadoop 下的 etc/hadoop/core-site.xml

加入配置信息

<property>
    <name>hadoop.proxyuser.root.hosts</name>
    <value>*</value>
</property>
<property>
    <name>hadoop.proxyuser.root.groups</name>
    <value>*</value>
</property>

运行时用root登录

 类似资料: