HDFS-12470. DiskBalancer: Some tests create plan files under system directory. Contributed by Hanisha Koneru.
This commit is contained in:
parent
a4f9c7c924
commit
a2dcba1853
|
@ -476,9 +476,12 @@ public class TestDiskBalancerCommand {
|
||||||
public void testPlanJsonNode() throws Exception {
|
public void testPlanJsonNode() throws Exception {
|
||||||
final String planArg = String.format("-%s %s", PLAN,
|
final String planArg = String.format("-%s %s", PLAN,
|
||||||
"a87654a9-54c7-4693-8dd9-c9c7021dc340");
|
"a87654a9-54c7-4693-8dd9-c9c7021dc340");
|
||||||
|
final Path testPath = new Path(
|
||||||
|
PathUtils.getTestPath(getClass()),
|
||||||
|
GenericTestUtils.getMethodName());
|
||||||
final String cmdLine = String
|
final String cmdLine = String
|
||||||
.format(
|
.format(
|
||||||
"hdfs diskbalancer %s", planArg);
|
"hdfs diskbalancer -out %s %s", testPath, planArg);
|
||||||
runCommand(cmdLine);
|
runCommand(cmdLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue