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

venkata ramkumar commented on HDFS-13817:
-----------------------------------------

Verified by creating a mount entry.
{noformat}
/bin> ./hdfs dfsrouteradmin -add /apps5 hacluster1,hacluster2 /tmp10 -order 
RANDOM -owner securedn -group hadoop
Successfully added mount point /apps5
{noformat}

once the target directory is created able to get the output for ./hdfs dfs -ls 
/apps5
{noformat}
/bin> ./hdfs dfs -mkdir hdfs://hacluster1/tmp10
/bin> ./hdfs dfs -mkdir hdfs://hacluster2/tmp10
/bin> ./hdfs dfs -ls /apps5
{noformat}


> RBF: create mount point with RANDOM policy and with 2 Nameservices doesn't 
> work properly 
> -----------------------------------------------------------------------------------------
>
>                 Key: HDFS-13817
>                 URL: https://issues.apache.org/jira/browse/HDFS-13817
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: federation
>            Reporter: Harshakiran Reddy
>            Assignee: venkata ramkumar
>            Priority: Major
>              Labels: RBF
>
> {{Scenario:-}} 
> # Create a mount point with RANDOM policy and with 2 Nameservices .
> # List the target mount path of the Global path.
> Actual Output: 
> =========== 
> {{ls: `/apps5': No such file or directory}}
> Expected Output: 
> =============
> {{if the files are availabel list those files or if it's emtpy it will disply 
> nothing}}
> {noformat} 
> bin> ./hdfs dfsrouteradmin -add /apps5 hacluster,ns2 /tmp10 -order RANDOM 
> -owner securedn -group hadoop
> Successfully added mount point /apps5
> bin> ./hdfs dfs -ls /apps5
> ls: `/apps5': No such file or directory
> bin> ./hdfs dfs -ls /apps3
> Found 2 items
> drwxrwxrwx   - user group 0 2018-08-09 19:55 /apps3/apps1
> -rw-r--r--   3   - user group  4 2018-08-10 11:55 /apps3/ttt
>  {noformat}
> {{please refer the bellow image for mount inofrmation}}
> {{/apps3 tagged with HASH policy}}
> {{/apps5 tagged with RANDOM policy}}
> {noformat}
> /bin> ./hdfs dfsrouteradmin -ls
> Mount Table Entries:
> Source                    Destinations              Owner                     
> Group                     Mode                      Quota/Usage
> /apps3                    hacluster->/tmp3,ns2->/tmp4 securedn                
>   users                     rwxr-xr-x                 [NsQuota: -/-, SsQuota: 
> -/-]
> /apps5                    hacluster->/tmp5,ns2->/tmp5 securedn                
>   users                     rwxr-xr-x                 [NsQuota: -/-, SsQuota: 
> -/-]
> {noformat}



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