HDFS-10476. DiskBalancer: Plan command output directory should be a sub-directory. Contributed by Anu Engineer.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/47dcb0f9 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/47dcb0f9 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/47dcb0f9 Branch: refs/heads/trunk Commit: 47dcb0f95288a5e6f05480d274f1ebd8cc873ef8 Parents: 06a9799 Author: Anu Engineer <[email protected]> Authored: Tue Jun 7 10:18:05 2016 -0700 Committer: Arpit Agarwal <[email protected]> Committed: Thu Jun 23 18:21:08 2016 -0700 ---------------------------------------------------------------------- .../apache/hadoop/hdfs/server/diskbalancer/command/Command.java | 4 ++-- .../src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancer.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/47dcb0f9/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/diskbalancer/command/Command.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/diskbalancer/command/Command.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/diskbalancer/command/Command.java index feee977..fb975a8 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/diskbalancer/command/Command.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/diskbalancer/command/Command.java @@ -163,10 +163,10 @@ public abstract class Command extends Configured { if (getClusterURI().getScheme().startsWith("file")) { diskBalancerLogs = new Path( System.getProperty("user.dir") + DEFAULT_LOG_DIR.toString() + - format.format(now)); + Path.SEPARATOR + format.format(now)); } else { diskBalancerLogs = new Path(DEFAULT_LOG_DIR.toString() + - format.format(now)); + Path.SEPARATOR + format.format(now)); } } else { diskBalancerLogs = new Path(path); http://git-wip-us.apache.org/repos/asf/hadoop/blob/47dcb0f9/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancer.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancer.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancer.java index 4005652..dde2ce4 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancer.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/DiskBalancer.java @@ -216,6 +216,10 @@ public class DiskBalancer extends Configured implements Tool { Option help = new Option(HELP, true, "Help about a command or this message"); opt.addOption(help); + + Option verbose = new Option(VERBOSE, "Print out the summary of the plan"); + opt.addOption(verbose); + } /** --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
