HDFS-12812. Ozone: dozone: initialize scm and ksm directory on cluster startup. Contributed by Elek, Marton.

This commit is contained in:
Xiaoyu Yao 2018-01-25 12:02:44 -08:00 committed by Owen O'Malley
parent 6b03fca37d
commit 10e1e2c2f5

View File

@ -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"]