|
@@ -245,13 +245,22 @@ Commands useful for administrators of a hadoop cluster.
|
|
|
|
|
|
### `balancer`
|
|
|
|
|
|
-Usage: `hdfs balancer [-threshold <threshold>] [-policy <policy>] [-idleiterations <idleiterations>]`
|
|
|
+Usage:
|
|
|
+
|
|
|
+ hdfs balancer
|
|
|
+ [-threshold <threshold>]
|
|
|
+ [-policy <policy>]
|
|
|
+ [-exclude [-f <hosts-file> | <comma-separated list of hosts>]]
|
|
|
+ [-include [-f <hosts-file> | <comma-separated list of hosts>]]
|
|
|
+ [-idleiterations <idleiterations>]
|
|
|
|
|
|
| COMMAND\_OPTION | Description |
|
|
|
|:---- |:---- |
|
|
|
-| `-policy` *policy* | `datanode` (default): Cluster is balanced if each datanode is balanced.<br/> `blockpool`: Cluster is balanced if each block pool in each datanode is balanced. |
|
|
|
-| `-threshold` *threshold* | Percentage of disk capacity. This overwrites the default threshold. |
|
|
|
-| `-idleiterations` *iterations* | Maximum number of idle iterations before exit. This overwrites the default idleiterations(5). |
|
|
|
+| `-policy` \<policy\> | `datanode` (default): Cluster is balanced if each datanode is balanced.<br/> `blockpool`: Cluster is balanced if each block pool in each datanode is balanced. |
|
|
|
+| `-threshold` \<threshold\> | Percentage of disk capacity. This overwrites the default threshold. |
|
|
|
+| `-exclude -f` \<hosts-file\> \| \<comma-separated list of hosts\> | Excludes the specified datanodes from being balanced by the balancer. |
|
|
|
+| `-include -f` \<hosts-file\> \| \<comma-separated list of hosts\> | Includes only the specified datanodes to be balanced by the balancer. |
|
|
|
+| `-idleiterations` \<iterations\> | Maximum number of idle iterations before exit. This overwrites the default idleiterations(5). |
|
|
|
|
|
|
Runs a cluster balancing utility. An administrator can simply press Ctrl-C to stop the rebalancing process. See [Balancer](./HdfsUserGuide.html#Balancer) for more details.
|
|
|
|