Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10576 DiskBalancer followup work items
  3. HDFS-10813

DiskBalancer: Add the getNodeList method in Command

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha2
    • balancer & mover
    • None
    • Reviewed

    Description

      The method Command#getNodeList in DiskBalancer was added in HDFS-9545, but it's never used. We can improve that in the following aspects:

      1.Change private to protected so that the subclass can use that method in the future.
      2.Reuse the method Command#getNodeList and to construct a new method
      like this List<DiskBalancerDataNode> getNodes(String listArg). This method can be used for getting multiple nodes in the future. For example, if we want to use hdfs diskbalancer -report -node or hdfs diskbalancer -plan with multiple specified nodes, that method can be used. Now these commands only support one node.

      Attachments

        1. HDFS-10813.001.patch
          4 kB
          Yiqun Lin

        Activity

          People

            linyiqun Yiqun Lin
            linyiqun Yiqun Lin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: