[ https://issues.apache.org/jira/browse/HDFS-16786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Haiyang Hu resolved HDFS-16786. ------------------------------- Resolution: Duplicate > 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: hdfs-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org