hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weiwei Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11871) balance include Parameter Usage Error
Date Tue, 23 May 2017 10:00:09 GMT

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

Weiwei Yang commented on HDFS-11871:

Hi [~kevy]

Thanks for reporting this.
I just have a quick look at this but the usage seems correct to me. So it takes either 1)
{{-f <host-file>}}, this option let you specify a file which is parsed by the regex
{{[ \t\n\f\r]+}} or 2) {{<comma-separated list of hosts>}}, this option let you specify
a comma separated list of hosts as arguments, this is parsed by {{StringUtils.getTrimmedStrings()}}.
Am I missing anything?

> balance include Parameter Usage Error
> -------------------------------------
>                 Key: HDFS-11871
>                 URL: https://issues.apache.org/jira/browse/HDFS-11871
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: balancer & mover
>    Affects Versions: 2.7.3
>            Reporter: kevy liu
>            Assignee: Weiwei Yang
>            Priority: Trivial
> [hadoop@bigdata-hdp-apache505 hadoop-2.7.2]$ bin/hdfs balancer -h
> Usage: hdfs balancer
>         [-policy <policy>]      the balancing policy: datanode or blockpool
>         [-threshold <threshold>]        Percentage of disk capacity
>         [-exclude [-f <hosts-file> | <comma-separated list of hosts>]]  Excludes
the specified datanodes.
>         [-include [-f <hosts-file> | <comma-separated list of hosts>]]  Includes
only the specified datanodes.
>         [-idleiterations <idleiterations>]      Number of consecutive idle iterations
(-1 for Infinite) before exit.
> Parameter Description:
> -f <hosts-file> | <comma-separated list of hosts> 
> The parse separator in the code is:
> String[] nodes = line.split("[ \t\n\f\r]+");

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