HDFS-10476. DiskBalancer: Plan command output directory should be a sub-directory. Contributed by Anu Engineer.
This commit is contained in:
parent
06a9799d84
commit
47dcb0f952
|
@ -163,10 +163,10 @@ public abstract class Command extends Configured {
|
||||||
if (getClusterURI().getScheme().startsWith("file")) {
|
if (getClusterURI().getScheme().startsWith("file")) {
|
||||||
diskBalancerLogs = new Path(
|
diskBalancerLogs = new Path(
|
||||||
System.getProperty("user.dir") + DEFAULT_LOG_DIR.toString() +
|
System.getProperty("user.dir") + DEFAULT_LOG_DIR.toString() +
|
||||||
format.format(now));
|
Path.SEPARATOR + format.format(now));
|
||||||
} else {
|
} else {
|
||||||
diskBalancerLogs = new Path(DEFAULT_LOG_DIR.toString() +
|
diskBalancerLogs = new Path(DEFAULT_LOG_DIR.toString() +
|
||||||
format.format(now));
|
Path.SEPARATOR + format.format(now));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
diskBalancerLogs = new Path(path);
|
diskBalancerLogs = new Path(path);
|
||||||
|
|
|
@ -216,6 +216,10 @@ public class DiskBalancer extends Configured implements Tool {
|
||||||
Option help =
|
Option help =
|
||||||
new Option(HELP, true, "Help about a command or this message");
|
new Option(HELP, true, "Help about a command or this message");
|
||||||
opt.addOption(help);
|
opt.addOption(help);
|
||||||
|
|
||||||
|
Option verbose = new Option(VERBOSE, "Print out the summary of the plan");
|
||||||
|
opt.addOption(verbose);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue