HDFS-10476. DiskBalancer: Plan command output directory should be a sub-directory. Contributed by Anu Engineer.

This commit is contained in:
Anu Engineer 2016-06-07 10:18:05 -07:00 committed by Arpit Agarwal
parent 06a9799d84
commit 47dcb0f952
2 changed files with 6 additions and 2 deletions

View File

@ -163,10 +163,10 @@ protected void setOutputPath(String path) throws IOException {
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);

View File

@ -216,6 +216,10 @@ private void addPlanCommands(Options opt) {
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);
}
/**