Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Not A Problem
-
2.7.2
-
None
-
None
-
$ hadoop version
Hadoop 2.7.2
Description
I want to match my unix user to HDFS: hduser:hadoop.
For the user I use the VE.
$ echo $HADOOP_HDFS_USER
hduser
For the group I use the hdfs-site.xml :
<property>
<name>dfs.permissions.superusergroup</name>
<value>hadoop</value>
</property>
The namenode log file show the parameter user/group values.
INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: fsOwner = hduser (auth:SIMPLE)
INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: supergroup = hadoop
INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: isPermissionEnabled = true
Everything seems to be OK, but when I copy file form FS to HDFS the group is not correct. It keeps the supergroup default value.
Thoses shell commands show the issue:
$ ll /srv/downloads/zk.tar
rw-rr- 1 hduser hadoop 41984000 Aug 18 13:25 /srv/downloads/zk.tar
$ hdfs dfs -put /srv/downloads/zk.tar /tmp
$ hdfs dfs -ls /tmp/zk.tar
rw-rr- 2 hduser supergroup 41984000 2016-09-14 12:47 /tmp/zk.tar
I have:
rw-rr- 2 hduser supergroup 41984000 2016-09-14 12:47 /tmp/zk.tar
I expect :
rw-rr- 2 hduser hadoop 41984000 2016-09-14 12:47 /tmp/zk.tar
Why the HDFS group is not the value of the dfs.permissions.superusergroup property ?
@jbigdata.fr