|
@@ -34,6 +34,7 @@ import java.util.Set;
|
|
import java.util.UUID;
|
|
import java.util.UUID;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeUnit;
|
|
import org.apache.commons.lang3.RandomUtils;
|
|
import org.apache.commons.lang3.RandomUtils;
|
|
|
|
+import org.apache.hadoop.hdds.HddsConfigKeys;
|
|
import org.apache.hadoop.hdds.conf.OzoneConfiguration;
|
|
import org.apache.hadoop.hdds.conf.OzoneConfiguration;
|
|
import org.apache.hadoop.hdds.protocol.proto.HddsProtos;
|
|
import org.apache.hadoop.hdds.protocol.proto.HddsProtos;
|
|
import org.apache.hadoop.hdds.protocol.proto.HddsProtos.NodeState;
|
|
import org.apache.hadoop.hdds.protocol.proto.HddsProtos.NodeState;
|
|
@@ -388,7 +389,7 @@ public class TestStorageContainerManager {
|
|
final String path = GenericTestUtils.getTempPath(
|
|
final String path = GenericTestUtils.getTempPath(
|
|
UUID.randomUUID().toString());
|
|
UUID.randomUUID().toString());
|
|
Path scmPath = Paths.get(path, "scm-meta");
|
|
Path scmPath = Paths.get(path, "scm-meta");
|
|
- conf.set(OzoneConfigKeys.OZONE_METADATA_DIRS, scmPath.toString());
|
|
|
|
|
|
+ conf.set(HddsConfigKeys.OZONE_METADATA_DIRS, scmPath.toString());
|
|
|
|
|
|
StartupOption.INIT.setClusterId("testClusterId");
|
|
StartupOption.INIT.setClusterId("testClusterId");
|
|
// This will initialize SCM
|
|
// This will initialize SCM
|
|
@@ -410,7 +411,7 @@ public class TestStorageContainerManager {
|
|
final String path = GenericTestUtils.getTempPath(
|
|
final String path = GenericTestUtils.getTempPath(
|
|
UUID.randomUUID().toString());
|
|
UUID.randomUUID().toString());
|
|
Path scmPath = Paths.get(path, "scm-meta");
|
|
Path scmPath = Paths.get(path, "scm-meta");
|
|
- conf.set(OzoneConfigKeys.OZONE_METADATA_DIRS, scmPath.toString());
|
|
|
|
|
|
+ conf.set(HddsConfigKeys.OZONE_METADATA_DIRS, scmPath.toString());
|
|
//This will set the cluster id in the version file
|
|
//This will set the cluster id in the version file
|
|
MiniOzoneCluster cluster =
|
|
MiniOzoneCluster cluster =
|
|
MiniOzoneCluster.newBuilder(conf).setNumDatanodes(1).build();
|
|
MiniOzoneCluster.newBuilder(conf).setNumDatanodes(1).build();
|
|
@@ -430,7 +431,7 @@ public class TestStorageContainerManager {
|
|
final String path =
|
|
final String path =
|
|
GenericTestUtils.getTempPath(UUID.randomUUID().toString());
|
|
GenericTestUtils.getTempPath(UUID.randomUUID().toString());
|
|
Path scmPath = Paths.get(path, "scm-meta");
|
|
Path scmPath = Paths.get(path, "scm-meta");
|
|
- conf.set(OzoneConfigKeys.OZONE_METADATA_DIRS, scmPath.toString());
|
|
|
|
|
|
+ conf.set(HddsConfigKeys.OZONE_METADATA_DIRS, scmPath.toString());
|
|
conf.setBoolean(OzoneConfigKeys.OZONE_ENABLED, true);
|
|
conf.setBoolean(OzoneConfigKeys.OZONE_ENABLED, true);
|
|
exception.expect(SCMException.class);
|
|
exception.expect(SCMException.class);
|
|
exception.expectMessage("SCM not initialized.");
|
|
exception.expectMessage("SCM not initialized.");
|
|
@@ -455,7 +456,7 @@ public class TestStorageContainerManager {
|
|
final String path =
|
|
final String path =
|
|
GenericTestUtils.getTempPath(UUID.randomUUID().toString());
|
|
GenericTestUtils.getTempPath(UUID.randomUUID().toString());
|
|
Path scmPath = Paths.get(path, "scm-meta");
|
|
Path scmPath = Paths.get(path, "scm-meta");
|
|
- conf.set(OzoneConfigKeys.OZONE_METADATA_DIRS, scmPath.toString());
|
|
|
|
|
|
+ conf.set(HddsConfigKeys.OZONE_METADATA_DIRS, scmPath.toString());
|
|
conf.setBoolean(OzoneConfigKeys.OZONE_ENABLED, true);
|
|
conf.setBoolean(OzoneConfigKeys.OZONE_ENABLED, true);
|
|
SCMStorage scmStore = new SCMStorage(conf);
|
|
SCMStorage scmStore = new SCMStorage(conf);
|
|
String clusterId = UUID.randomUUID().toString();
|
|
String clusterId = UUID.randomUUID().toString();
|