hbase错误:Org.apache.hadoop.ipc.RemoteException:User:client is not allowed to impersonate root
来源:互联网 发布:有网络晒照片的软件吗 编辑:程序博客网 时间:2024/05/21 08:56
场景:远程登录配有Kerberos的hbase的时候,client端用到的kerberos的principal是client/mj1@BDSM.CMCC
错误:
Org.apache.hadoop.ipc.RemoteException:User:clientis not allowed to impersonate root;
解决方法:
在hadoop的配置文件core-site.xml中配置如下内容:
<property>
<name>hadoop.proxyuser. client.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser. client.groups</name>
<value>*</value>
</property>
上述错误的根本解决办法:
在client端的配置目录里添加core-site.xml文件,内容如下:
<configuration>
<property>
<name>hadoop.security.authentication</name>
<value>kerberos</value>
</property>
</configuration>
即可,就不需要在生产环境的hadoop的core-site.xml中添加任何配置了。如果client端没有该配置文件,则在hbase用户远程访问hdfs文件系统的时候,因为没有读到hadoop的认证方式为kerberos,而成了代理proxy模式,即日志里记载的是AUTH=PROXY,而非KERBEROS,所以认证不通过,显示client不能伪装为root用户。
在hbase shell中登录远程的hbase数据库时,必须把hadoop的kerberos配置放在core-site.xml中才可以,放在hbase-site.xml中是不认的,所以需要在指定的登录配置目录下放一个core-site.xml文件添加该配置项。但是在java程序中,把该配置项添加到hbase-site.xml中就可以,不需要单独的core-site.xml配置文件。
在终端的hbase shell远程登录hbase命令:HBASE_CONF_DIR="/opt/hbase-1.2.1/back_conf/"/opt/hbase-1.2.1/bin/hbase shell
其中的HBASE_CONF_DIR就是指定的配置目录,该目录下目前放了hbase-site.xml和core-site.xml以及需要的keytab文件
- hbase错误:Org.apache.hadoop.ipc.RemoteException:User:client is not allowed to impersonate root
- 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
- User root is not allowed to impersonate anonymous
- User root is not allowed to impersonate anonymous
- 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
- hadoop is not allowed to impersonate hadoop
- Oozie-Error: E0501: User: oozie is not allowed to impersonate root [ Edited ]
- hbase异常org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hbase.ClockOutOfSyncException): org.a
- Hbase报错"org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.StandbyException): Operation ca"
- Oozie Error: E0902 : E0902: Exception occured: [org.apache.hadoop.ipc.RemoteException: User: oozie i
- org.apache.hadoop.hbase.NotServingRegionException: Region is not online 错误
- org.apache.hadoop.hbase.NotServingRegionException: Region is not online 错误
- hadoop上传文件错误org.apache.hadoop.ipc.RemoteException(java.io.IOException)
- ERROR: org.apache.hadoop.hbase.ipc.ServerNotRunningYetException: Server is not running yet
- Android系统crash的几种情况
- 题目57 6174问题
- js之给json数组动态赋值
- 46.字母小游戏
- C++中cos,sin,asin,acos这些三角函数操作的是弧度,而非角度
- hbase错误:Org.apache.hadoop.ipc.RemoteException:User:client is not allowed to impersonate root
- ubuntu14.0.4下安装pycharm
- http://mxdxm.iteye.com/blog/1124914
- Ninject
- 返回二叉树的镜像
- 文章标题
- 47.正三角形的外接圆面积
- 利用SURF特征检测和FLANN最近邻算法实现图像的目标提取
- android 问题:输入法弹出后,不影响activity原有布局