hive安裝啟動成功後,使用beeline連接配接時,報錯如下:
java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate anonymous), serverProtocolVersion:null)
需要在core-site.xml配置資訊:
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
</property>
配置重新開機後,還是報錯,最後才知道需要重新整理權限:
bin/hdfs dfsadmin –refreshSuperUserGroupsConfiguration