[ 
https://issues.apache.org/jira/browse/HDFS-10813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15450640#comment-15450640
 ] 

Yiqun Lin commented on HDFS-10813:
----------------------------------

Thanks [~anu] for the review. 
{quote}
could you please file a document JIRA that explains how this feature works. 
Since the change is the CLI it is good to have the documentation updated too.
{quote}
I am some confused here, I just add one utility method in {{Command}} and I 
haven't changed the current CLI. Right? In addition, I will file some JIRAS for 
supporting multiple specified nodes for {{hdfs diskbalancer -report -node}} or 
other commands.

Correct me if I am wrong.
Thanks.

> DiskBalancer: Add the getNodeList method in Command
> ---------------------------------------------------
>
>                 Key: HDFS-10813
>                 URL: https://issues.apache.org/jira/browse/HDFS-10813
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: balancer & mover
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: HDFS-10813.001.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to