From 4003849fa48f7ba041c35901272744f9bd089724 Mon Sep 17 00:00:00 2001 From: Nanda kumar Date: Fri, 12 Apr 2019 14:45:57 +0530 Subject: [PATCH] HDDS-1416. MiniOzoneCluster should set custom value for hdds.datanode.replication.work.dir. Contributed by chencan. --- .../java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java index 8018bab483..4cfc950fb6 100644 --- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java +++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java @@ -540,13 +540,18 @@ List createHddsDatanodes( Path metaDir = Paths.get(datanodeBaseDir, "meta"); Path dataDir = Paths.get(datanodeBaseDir, "data", "containers"); Path ratisDir = Paths.get(datanodeBaseDir, "data", "ratis"); + Path wrokDir = Paths.get(datanodeBaseDir, "data", "replication", + "work"); Files.createDirectories(metaDir); Files.createDirectories(dataDir); Files.createDirectories(ratisDir); + Files.createDirectories(wrokDir); dnConf.set(HddsConfigKeys.OZONE_METADATA_DIRS, metaDir.toString()); dnConf.set(DFSConfigKeys.DFS_DATANODE_DATA_DIR_KEY, dataDir.toString()); dnConf.set(OzoneConfigKeys.DFS_CONTAINER_RATIS_DATANODE_STORAGE_DIR, ratisDir.toString()); + dnConf.set(OzoneConfigKeys.OZONE_CONTAINER_COPY_WORKDIR, + wrokDir.toString()); hddsDatanodes.add( HddsDatanodeService.createHddsDatanodeService(args, dnConf));