HDFS-12812. Ozone: dozone: initialize scm and ksm directory on cluster startup. Contributed by Elek, Marton.
This commit is contained in:
parent
6b03fca37d
commit
10e1e2c2f5
@ -42,6 +42,8 @@ services:
|
|||||||
- ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
|
- ../../../hadoop-dist/target/hadoop-${VERSION}:/opt/hadoop
|
||||||
ports:
|
ports:
|
||||||
- 9874:9874
|
- 9874:9874
|
||||||
|
environment:
|
||||||
|
ENSURE_KSM_INITIALIZED: /data/metadata/ksm/current/VERSION
|
||||||
env_file:
|
env_file:
|
||||||
- ./docker-config
|
- ./docker-config
|
||||||
command: ["/opt/hadoop/bin/hdfs","ksm"]
|
command: ["/opt/hadoop/bin/hdfs","ksm"]
|
||||||
@ -53,4 +55,6 @@ services:
|
|||||||
- 9876:9876
|
- 9876:9876
|
||||||
env_file:
|
env_file:
|
||||||
- ./docker-config
|
- ./docker-config
|
||||||
|
environment:
|
||||||
|
ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION
|
||||||
command: ["/opt/hadoop/bin/hdfs","scm"]
|
command: ["/opt/hadoop/bin/hdfs","scm"]
|
||||||
|
Loading…
Reference in New Issue
Block a user