Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Not A Problem
-
2.7.3
-
None
-
None
Description
[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]+");