Repository: hadoop Updated Branches: refs/heads/branch-2.8 49602ef58 -> 11c6930a1
HDFS-8923. Add -source flag to balancer usage message. Contributed by Chris Trezzo Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/11c6930a Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/11c6930a Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/11c6930a Branch: refs/heads/branch-2.8 Commit: 11c6930a1768f020e3e5f9747fa1b2188b8a5bbe Parents: 49602ef Author: Tsz-Wo Nicholas Sze <[email protected]> Authored: Thu Feb 18 18:18:12 2016 -0800 Committer: Tsz-Wo Nicholas Sze <[email protected]> Committed: Thu Feb 18 18:39:45 2016 -0800 ---------------------------------------------------------------------- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/hdfs/server/balancer/Balancer.java | 2 ++ hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md | 2 ++ 3 files changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/11c6930a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index e402030..f8f7da2 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1806,6 +1806,9 @@ Release 2.7.3 - UNRELEASED HDFS-4946. Allow preferLocalNode in BlockPlacementPolicyDefault to be configurable (James Kinley and Nathan Roberts via kihwal) + HDFS-8923. Add -source flag to balancer usage message. (Chris Trezzo + via szetszwo) + OPTIMIZATIONS BUG FIXES http://git-wip-us.apache.org/repos/asf/hadoop/blob/11c6930a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java index 60e70f4..3a6e958 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Balancer.java @@ -180,6 +180,8 @@ public class Balancer { + "\tExcludes the specified datanodes." + "\n\t[-include [-f <hosts-file> | <comma-separated list of hosts>]]" + "\tIncludes only the specified datanodes." + + "\n\t[-source [-f <hosts-file> | <comma-separated list of hosts>]]" + + "\tPick only the specified datanodes as source nodes." + "\n\t[-blockpools <comma-separated list of blockpool ids>]" + "\tThe balancer will only run on blockpools included in this list." + "\n\t[-idleiterations <idleiterations>]" http://git-wip-us.apache.org/repos/asf/hadoop/blob/11c6930a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md index 167cb1b..2602511 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -265,6 +265,7 @@ Usage: [-policy <policy>] [-exclude [-f <hosts-file> | <comma-separated list of hosts>]] [-include [-f <hosts-file> | <comma-separated list of hosts>]] + [-source [-f <hosts-file> | <comma-separated list of hosts>]] [-blockpools <comma-separated list of blockpool ids>] [-idleiterations <idleiterations>] @@ -274,6 +275,7 @@ Usage: | `-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. | +| `-source -f` \<hosts-file\> \| \<comma-separated list of hosts\> | Pick only the specified datanodes as source nodes. | | `-blockpools` \<comma-separated list of blockpool ids\> | The balancer will only run on blockpools included in this list. | | `-idleiterations` \<iterations\> | Maximum number of idle iterations before exit. This overwrites the default idleiterations(5). |
