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 @@ 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);

View File

@ -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);
}
/**