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

Xiaoqiao He commented on HDFS-16011:
------------------------------------

[~ayushtkn], I think it is common requirement for nested mount points. Such as 
for path `/user`, I meet there are over 1000 children path under `/user` and 
top user occupy the most directories and files. And we need to split some of 
them to another namespace. Then the expected mount should be:
/user -> nsA:/user
/user/hadoop-userB -> nsB:/user/hadoop-userB
/user/hadoop-userC -> nsC:/user/hadoop-userC
which is implemented by RBF, but not viewfs/viewfilesystem. I think this 
improvement is useful for some deployment not enable RBF feature.

[~zhuxiangyi]
{quote}You need to tackle the API behaviours as well to tackle the nested mount 
points. One example being getListing(), While doing the listing you need to 
handle the nested mount points. Rename should offer some resistance as well. 
May be getContensummary() as well. In case this code hasn't already handled in 
some way.
{quote}
+1 

> HDFS: Support viewfs nested mount
> ---------------------------------
>
>                 Key: HDFS-16011
>                 URL: https://issues.apache.org/jira/browse/HDFS-16011
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs, viewfs
>    Affects Versions: 3.2.2, 3.3.1, 3.4.0
>            Reporter: zhu
>            Assignee: zhu
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> The current viewfs does not support nested mount points. The current viewfs 
> does not support nested mount points. 
> *E.g:*
>     1./home/ => /home/
>     2./home/work => /home/work
> If mount point 1 is loaded, mount point 2 cannot be added, and the following 
> exception will be thrown when loading 2.
> {code:java}
> throw new FileAlreadyExistsException("Path " + nextInode.fullPath +
>  " already exists as link");
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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