hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anu Engineer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-10813) DiskBalancer: Add the getNodeList method in Command
Date Wed, 31 Aug 2016 01:34:20 GMT

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

Anu Engineer commented on HDFS-10813:

[~linyiqun] You are right, I was anticipating the change based on the comments, and how the
command CLI would change based on using this function. Sorry about the confusion.  I will
commit this now and hopefully when the CLI changes you can pack the documentation changes

> 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
> 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

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message