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

Akira Ajisaka commented on HDFS-13972:
--------------------------------------

Thanks [~crh] for the 003 patch. Mostly works fine, but WebHDFS liststatus 
couldn't list the mount point correctly in my environment.

Using HDFS API, two directory are listed.
{noformat}
$ hdfs dfs -ls hdfs://<router>:8888/tmp/
Found 2 items
drwxrwxrwx   - hdfs supergroup          0 2018-11-09 17:50 
hdfs://<router>:8888/tmp/tmp1
drwxrwxrwx   - hdfs supergroup          0 2018-11-09 17:50 
hdfs://<router>:8888/tmp/tmp2
{noformat}

Using WebHDFS API, only one directory is listed.
{noformat}
$ curl -u : --negotiate -i "http://<router>:50071/webhdfs/v1/tmp/?op=LISTSTATUS"
(snip)
{"FileStatuses":{"FileStatus":[
{"accessTime":0,"blockSize":0,"childrenNum":0,"fileId":16387,"group":"supergroup","length":0,"modificationTime":1552016766769,"owner":"hdfs","pathSuffix":"tmp1","permission":"755","replication":0,"storagePolicy":0,"type":"DIRECTORY"}
]}}
{noformat}

The mount table is as follows:
{noformat}
$ hdfs dfsrouteradmin -ls /tmp
Mount Table Entries:
Source                    Destinations              Owner                     
Group                     Mode                      Quota/Usage              
/tmp                      ns1->/tmp                 aajisaka                  
users                     rwxr-xr-x                 [NsQuota: -/-, SsQuota: -/-]
/tmp/tmp1                 ns1->/tmp/tmp1            aajisaka                  
users                     rwxr-xr-x                 [NsQuota: -/-, SsQuota: -/-]
/tmp/tmp2                 ns2->/tmp/tmp2            aajisaka                  
users                     rwxr-xr-x                 [NsQuota: -/-, SsQuota: -/-]
{noformat}

> RBF: Support for Delegation Token (WebHDFS)
> -------------------------------------------
>
>                 Key: HDFS-13972
>                 URL: https://issues.apache.org/jira/browse/HDFS-13972
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Íñigo Goiri
>            Assignee: CR Hota
>            Priority: Major
>         Attachments: HDFS-13972-HDFS-13891.001.patch, 
> HDFS-13972-HDFS-13891.002.patch, HDFS-13972-HDFS-13891.003.patch
>
>
> HDFS Router should support issuing HDFS delegation tokens through WebHDFS.



--
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