[ 
https://issues.apache.org/jira/browse/HDFS-10863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15505776#comment-15505776
 ] 

Yulei Li commented on HDFS-10863:
---------------------------------

According to your setup, I found  my linux user matched hdfs:
[hadoop@hadoop ~]$ ll  test
-rw-rw-r--. 1 hadoop hadoop 5 9月  20 14:25 test
[hadoop@hadoop ~]$ hdfs dfs -ls /tmp
Found 1 items
-rw-r--r--   1 hadoop hadoop          5 2016-09-20 14:30 /tmp/test
My OS is CentOS7, and hadoop version is hadoop 3.0.0, I don't think it is a 
bug. Could you show some more information about your environment and 
configuration?

> hadoop superusergroup supergroup issue
> --------------------------------------
>
>                 Key: HDFS-10863
>                 URL: https://issues.apache.org/jira/browse/HDFS-10863
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.7.2
>         Environment: $ hadoop version
> Hadoop 2.7.2
>            Reporter: www.jbigdata.fr
>            Priority: Minor
>
> 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-r--r-- 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-r--r--   2 hduser supergroup   41984000 2016-09-14 12:47 /tmp/zk.tar
> I have:
> -rw-r--r-- 2 hduser supergroup 41984000 2016-09-14 12:47 /tmp/zk.tar
> I expect :
> -rw-r--r-- 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to