Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-16786

RBF: Create -addNamespace method in dfsrouteradmin

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              haiyang Hu Haiyang Hu
              haiyang Hu Haiyang Hu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: