Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here. Want to know more about what has changed? Check out the Community News blog.

user group mapping dose not work as I expected

user group mapping dose not work as I expected

New Contributor

I use kerberized cluster backed by openldap using sssd on centos7

and I configured user as following.


[root@localhost sssd]# hdfs groups zako
zako : datalaker

[root@localhost sssd]# hadoop
Getting UGI for current user
User: zako/localhost.localadmin@YUKI.COM
Group Ids: 
Groups: datalaker 
UGI: zako/localhost.localadmin@YUKI.COM (auth:KERBEROS)
Auth method KERBEROS
Keytab false

[root@localhost sssd]# id -gn zako

[root@localhost sssd]# id -Gn zako


I expected zako:datalaker as user:group by executing hadoop mkdir command.

however , I got an following result.

[root@localhost sssd]# hadoop fs -mkdir /tmp/hoge && hadoop fs -ls /tmp && hadoop fs -rmr -skipTrash /tmp/hoge
Found 4 items
d--------- - hdfs supergroup 0 2019-05-07 23:57 /tmp/.cloudera_health_monitoring_canary_files
drwx-wx-wx - hive supergroup 0 2019-05-05 13:51 /tmp/hive
drwxr-xr-x - zako supergroup 0 2019-05-22 10:43 /tmp/hoge  <- zako:datalaker is that I excpect..
drwxrwxrwt - mapred hadoop 0 2019-05-05 13:39 /tmp/logs
rmr: DEPRECATED: Please use '-rm -r' instead.
Deleted /tmp/hoge

How can I rectify the problem.