From 6b555008f35665517dc31486b1eca70c4e91d612 Mon Sep 17 00:00:00 2001
From: Tsz-wo Sze
Date: Thu, 1 Dec 2011 21:19:01 +0000
Subject: [PATCH] HADOOP-7877. Update balancer CLI usage documentation to
include the new -policy option.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1209246 13f79535-47bb-0310-9956-ffa450edef68
---
hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++
.../content/xdocs/commands_manual.xml | 14 +++++++++++---
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index bbb5d90d31..d503ddd1ec 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -134,6 +134,9 @@ Release 0.23.1 - Unreleased
HADOOP-7804. Enable hadoop config generator to set configurations to enable
short circuit read. (Arpit Gupta via jitendra)
+ HADOOP-7877. Update balancer CLI usage documentation to include the new
+ -policy option. (szetszwo)
+
OPTIMIZATIONS
BUG FIXES
diff --git a/hadoop-common-project/hadoop-common/src/main/docs/src/documentation/content/xdocs/commands_manual.xml b/hadoop-common-project/hadoop-common/src/main/docs/src/documentation/content/xdocs/commands_manual.xml
index b46b1285a1..b3f25af40e 100644
--- a/hadoop-common-project/hadoop-common/src/main/docs/src/documentation/content/xdocs/commands_manual.xml
+++ b/hadoop-common-project/hadoop-common/src/main/docs/src/documentation/content/xdocs/commands_manual.xml
@@ -445,14 +445,22 @@
Rebalancer.
- Usage: hadoop balancer [-threshold <threshold>]
+ Usage: hadoop balancer [-policy <blockpool|datanode>] [-threshold <threshold>]
COMMAND_OPTION | Description |
-
+
+ -policy <blockpool|datanode> |
+ The balancing policy.
+
datanode : Cluster is balance if the disk usage of each datanode is balance.
+
blockpool : Cluster is balance if the disk usage of each block pool in each datanode is balance.
+ Note that blockpool is a condition stronger than datanode .
+ The default policy is datanode .
+ |
+
-threshold <threshold> |
- Percentage of disk capacity. This overwrites the default threshold. |
+ Percentage of disk capacity. This default threshold is 10%. |