[
https://issues.apache.org/jira/browse/HADOOP-13055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15433234#comment-15433234
]
Zhe Zhang commented on HADOOP-13055:
------------------------------------
I think we need to make two changes to {{InodeTree}}:
# {{root}} of a mount table can either be an {{INodeDir}} or an {{INodeLink}}.
So we should make it an {{INode}} and assign its value after checking the
configurations (at the end of the for loop in the constructor).
# Enforce that when {{linkMergeSlash}} is configured, no other links can be
configured for that mount table
I'm writing a patch to implement the above. Any thoughts are very welcome.
> Implement linkMergeSlash for ViewFs
> -----------------------------------
>
> Key: HADOOP-13055
> URL: https://issues.apache.org/jira/browse/HADOOP-13055
> Project: Hadoop Common
> Issue Type: New Feature
> Components: fs, viewfs
> Reporter: Zhe Zhang
> Assignee: Zhe Zhang
>
> In a multi-cluster environment it is sometimes useful to operate on the root
> / slash directory of an HDFS cluster. E.g., list all top level directories.
> Quoting the comment in {{ViewFs}}:
> {code}
> * A special case of the merge mount is where mount table's root is merged
> * with the root (slash) of another file system:
> * <ul>
> * <li> fs.viewfs.mounttable.default.linkMergeSlash=hdfs://nn99/
> * </ul>
> * In this cases the root of the mount table is merged with the root of
> * <b>hdfs://nn99/ </b>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]