您的位置:首页 > 运维架构 > Apache

HIVE2 Error: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteExc

2016-12-19 17:00 701 查看
LF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

Connecting to jdbc:hive2://localhost:10000/default

Enter username for jdbc:hive2://localhost:10000/default: root

Enter password for jdbc:hive2://localhost:10000/default: ******
Error: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate root (state=,code=0)

解决方案:在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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: