HDFS-12280. Ozone: TestOzoneContainer#testCreateOzoneContainer fails. Contributed by Lokesh Jain.

This commit is contained in:
Anu Engineer 2017-08-24 10:29:38 -07:00 committed by Owen O'Malley
parent 4d3b8d332d
commit 532ced18fc
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,6 @@ public class TestOzoneContainer {
MiniOzoneCluster cluster = null;
try {
cluster = new MiniOzoneCluster.Builder(conf)
.setRandomContainerPort(false)
.setHandlerType(OzoneConsts.OZONE_HANDLER_DISTRIBUTED).build();
// We don't start Ozone Container via data node, we will do it
// independently in our test path.
@ -67,6 +66,7 @@ public class TestOzoneContainer {
containerName);
conf.setInt(OzoneConfigKeys.DFS_CONTAINER_IPC_PORT,
pipeline.getLeader().getContainerPort());
conf.setBoolean(OzoneConfigKeys.DFS_CONTAINER_IPC_RANDOM_PORT, false);
container = new OzoneContainer(DFSTestUtil.getLocalDatanodeID(1),
conf);
container.start();