Browse Source

HADOOP-15367. Update the initialization code in the docker hadoop-runner baseimage.
Contributed by Elek, Marton.

Anu Engineer 7 years ago
parent
commit
9b8eae8526
2 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/starter.sh
  2. 0 0
      scripts/transformation.py

+ 2 - 2
scripts/starter.sh

@@ -51,7 +51,7 @@ fi
 
 
 if [ -n "$ENSURE_SCM_INITIALIZED" ]; then
 if [ -n "$ENSURE_SCM_INITIALIZED" ]; then
    if [ ! -f "$ENSURE_SCM_INITIALIZED" ]; then
    if [ ! -f "$ENSURE_SCM_INITIALIZED" ]; then
-      /opt/hadoop/bin/hdfs scm -init
+      /opt/hadoop/bin/ozone scm -init
    fi
    fi
 fi
 fi
 
 
@@ -61,7 +61,7 @@ if [ -n "$ENSURE_KSM_INITIALIZED" ]; then
 		# Could be removed after HDFS-13203
 		# Could be removed after HDFS-13203
 		echo "Waiting 15 seconds for SCM startup"
 		echo "Waiting 15 seconds for SCM startup"
 		sleep 15
 		sleep 15
-      /opt/hadoop/bin/hdfs ksm -createObjectStore
+      /opt/hadoop/bin/ozone ksm -createObjectStore
    fi
    fi
 fi
 fi
 
 

+ 0 - 0
scripts/transformation.py