赞
踩
您是 Hue 管理员,但不是 HDFS 超级用户
解决方法:
- #Linux下默认是没有supergroup组的
- #hadoop:x:994:hdfs,mapred,yarn
- cat /etc/group
-
- #查看hdfs用户的组是hadoop
- #hdfs:x:995:992:Hadoop HDFS:/var/lib/hadoop-hdfs:/sbin/nologin
- cat /etc/passwd
-
- #所以,先在Linux添加supergroup组,把root用户添加到supergroup里,再同步权限到HDFS。
-
- #Linux添加supergroup组
- #supergroup:x:1003:
- groupadd supergroup
-
- #将root添加到supergroup
- #supergroup:x:1003:root
- usermod -a -G supergroup root
-
- #同步系统权限信息到HDFS,会自动同步其他节点权限
- #Refresh user to groups mapping successful for cdh-master/192.168.100.45:8020
- #Refresh user to groups mapping successful for cdh-slave01/192.168.100.46:8020
然后再 hdfs 用户下同步 到其它节点
hdfs dfsadmin -refreshUserToGroupsMappings
- find / -name hue.ini
- #/opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/etc/hue/conf.empty/hue.ini
- vim /opt/cloudera/parcels/CDH-6.3.2-1.cdh6.3.2.p0.1605554/etc/hue/conf.empty/hue.ini
参考链接:
https://blog.csdn.net/u011596455/article/details/78046627
https://www.freesion.com/article/6055418584/
https://blog.csdn.net/weixin_30462049/article/details/94925491
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。