Hive2- User root is not allowed to impersonate anonymous
来源:互联网 发布:百度网盘 破解 知乎 编辑:程序博客网 时间:2024/06/05 17:59
1、Hive2- User root is not allowed to impersonate anonymous
使用HiveServer2 and Beeline模式运行时,启动好HiveServer后运行 beeline-u jdbc:hive2://localhost:10000 -n root 连接server时
出现
java.lang.RuntimeException:org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException):
User root is not allowed to impersonateanonymous错误。
•修改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>
Hadoop.proxyuser.root.hosts配置项名称中root部分为报错User:*中的用户名部分
例如User:zhaoshb is not allowed to impersonate anonymous则需要将xml变更为如下格式
<property>
<name>hadoop.proxyuser.zhaoshb.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.zhaoshb.groups</name>
<value>*</value>
</property>
•重启hadoop
•测试:./beeline -u 'jdbc:hive2://localhost:10000/userdb' -n username(替换为上述的用户名部分)
- Hive2- User root is not allowed to impersonate anonymous
- User root is not allowed to impersonate anonymous
- User root is not allowed to impersonate anonymous
- User root is not allowed to impersonate anonymous
- User root is not allowed to impersonate anonymous
- User root is not allowed to impersonate anonymous
- Hive:hive is not allowed to impersonate anonymous
- org.apache.hadoop.ipc.RemoteException: User: root is not allowed to impersonate root
- org.apache.hadoop.ipc.RemoteException: User: root is not allowed to impersonate root
- hbase错误:Org.apache.hadoop.ipc.RemoteException:User:client is not allowed to impersonate root
- Oozie-Error: E0501: User: oozie is not allowed to impersonate root [ Edited ]
- hive启动beeline连接报错: User: xxx is not allowed to impersonate anonymous (state=08S01,code=0)
- hadoop is not allowed to impersonate hadoop
- Host is not allowed to connect to this MySQL server 和 access denied for user 'root'@'localhost' 解决办法
- codesign returns User Interaction is not allowed
- Host 'USER-20141212QO' is not allowed to connect to this MySQL server
- "Host 'USER-XXXX' is not allowed to connect to this MySQL server"
- host is not allowed to connect mysql
- sql server2008里面的触发器
- 简单序列求和
- LR常用函数整理
- 在MAC OS下安装Raspbian Jessie with Pixel树莓派系统
- window 与ubuntu共享文件 hgfs下为空和不用每次挂载hgfs的方法
- Hive2- User root is not allowed to impersonate anonymous
- 剑指Offer面试题7 & Leetcode232
- ubunut16.04解决网速慢的办法
- CEGUI环境配置
- 转载一篇文章
- hadoop2项目问题Missing artifact jdk.tools:jdk.tools:jar:1.8
- Linux安装 Android1.6
- k-means 的原理,优缺点以及改进
- 单元测试工具-JUnit