From 10e1e2c2f5964a3f5c3cfb18be0757b1e9e381ec Mon Sep 17 00:00:00 2001 From: Xiaoyu Yao <xyao@apache.org> Date: Thu, 25 Jan 2018 12:02:44 -0800 Subject: [PATCH] HDFS-12812. Ozone: dozone: initialize scm and ksm directory on cluster startup. Contributed by Elek, Marton. --- dev-support/compose/ozone/docker-compose.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev-support/compose/ozone/docker-compose.yaml b/dev-support/compose/ozone/docker-compose.yaml index 0aa657573f..ee5e0bc042 100644 --- a/dev-support/compose/ozone/docker-compose.yaml +++ b/dev-support/compose/ozone/docker-compose.yaml @@ -42,6 +42,8 @@ services: - ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop ports: - 9874:9874 + environment: + ENSURE_KSM_INITIALIZED: /data/metadata/ksm/current/VERSION env_file: - ./docker-config command: ["/opt/hadoop/bin/hdfs","ksm"] @@ -53,4 +55,6 @@ services: - 9876:9876 env_file: - ./docker-config + environment: + ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION command: ["/opt/hadoop/bin/hdfs","scm"]