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

Akira Ajisaka commented on HDFS-14011:
--------------------------------------

dfsrouteradmin command returns mode 0755
{noformat}
[aajisaka@aajisaka-hadoop-r1 ~]$ hdfs dfsrouteradmin -ls
Mount Table Entries:
Source                    Destinations              Owner                     
Group                     Mode                      Quota/Usage             
/tmp                      ns1->/tmp                 aajisaka                  
users                     rwxr-xr-x                 [NsQuota: -/-, SsQuota: -/-]
/user                     ns2->/user                aajisaka                  
users                     rwxr-xr-x    
{noformat}
however, dfs -ls command returns 0777.
{noformat}
[aajisaka@aajisaka-hadoop-r1 ~]$ hdfs dfs -ls /
Found 2 items
drwxrwxrwx   - aajisaka users          0 2018-10-18 14:30 /tmp
drwxrwxrwx   - aajisaka users          0 2018-10-18 14:31 /user
{noformat}
If dfs -ls command is run by other user, the user is displayed as owner
{noformat}
[root@aajisaka-hadoop-r1 aajisaka]# hdfs dfs -ls /
Found 2 items
drwxrwxrwx   - root     root                0 2018-10-18 14:30 /tmp
drwxrwxrwx   - root     root                0 2018-10-18 14:31 /user
{noformat}

> RBF: Add more information to HdfsFileStatus for a mount point
> -------------------------------------------------------------
>
>                 Key: HDFS-14011
>                 URL: https://issues.apache.org/jira/browse/HDFS-14011
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Akira Ajisaka
>            Assignee: Akira Ajisaka
>            Priority: Major
>
> RouterClientProtocol#getMountPointStatus does not use information of the 
> mount point, therefore, 'hdfs dfs -ls' to a directory including mount point 
> returns the incorrect information.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to