beeline启动时,错误 User: root is not allowed to impersonate root
Posted liulala2017
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了beeline启动时,错误 User: root is not allowed to impersonate root相关的知识,希望对你有一定的参考价值。
错误:
beeline>!connect jdbc:hive2://192.168.33.01:10000 root root
Connecting to jdbc:hive2://192.168.33.01:10000
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的core-site.xml中添加以下内容
- #(虚拟机的登录用户)“root”可以代理所有主机上的所有用户
- <property>
- <name>hadoop.proxyuser.root.hosts</name>
- <value>*</value>
- </property>
- <property>
- <name>hadoop.proxyuser.root.groups</name>
- <value>*</value>
- </property>
以上是关于beeline启动时,错误 User: root is not allowed to impersonate root的主要内容,如果未能解决你的问题,请参考以下文章
Hive 8Hive2 beeline 和 Hive jdbc
启动TOMCAT时候 弹出 Access denied for user 'root'@'localhost'
shell调用beeline导致nohup后台进程stopped
Windows下mysql无法启动1067错误 以及 登录报错Access denied for user ‘root’@‘localhost’ (using password:Y