[
https://issues.apache.org/jira/browse/HDFS-16786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17610865#comment-17610865
]
ZanderXu commented on HDFS-16786:
---------------------------------
Thanks [~haiyang Hu] for your report.
If you just want to update the namespaces, such add or remove, maybe you can
just use "hdfs dfsrouteradmin -update /user/project ns1,ns2,newNs
/user/project" to achieve it. And other fields that not input will not changed,
because HDFS-13853 has fixed it.
But if you want to use "hdfs dfsrouteradmin -add /user/project newNs
/user/project" to achieve it, there is indeed a problem here. It will also
change other fields with default value. So it's bug.
>From my point, "add" is used to add the new mount point, and the "update" is
>used to modify the existed mount point. [~ayushtkn] Sir, how about disable
>the function that "add" can modify the exist mount point?
> RBF: Create -addNamespace method in dfsrouteradmin
> --------------------------------------------------
>
> Key: HDFS-16786
> URL: https://issues.apache.org/jira/browse/HDFS-16786
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Haiyang Hu
> Assignee: Haiyang Hu
> Priority: Major
>
> When add Namespaces to the existing MountTable.
> there are the following 2 methods:
> 1.hdfs dfsrouteradmin -add
> for example:
> hdfs dfsrouteradmin -add /user/project newNs /user/project
> this method problem is if no '-order' is specified,
> the order will set the default HASH and overwrite the existing MountTable
> order value,
> if the previously set order value is another DestinationOrder so may cause
> problems use of this MountTable.
> 2.hdfs dfsrouteradmin -update
> for example:
> hdfs dfsrouteradmin -update /user/project ns1,ns2,newNs /user/project -order
> HASH_ALL
> this method problem is need to get the existing ns lists, and the correct
> '-order' also needs to be specified,
> if there is problem with the specified parameters, which will also may cause
> problems use of this MountTable.
> so currently consider add new method,
> for example:
> hdfs dfsrouteradmin -addNamespace /user/project newNs
> to satisfy add Namespaces to the existing MountTable and facilitate daily
> maintenance of MountTable
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]