Skip to content

Commit

Permalink
support scm directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
elek committed Nov 14, 2017
1 parent 4c9bf93 commit b347eb4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/starter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ $DIR/envtoconf.py --destination /opt/hadoop/etc/hadoop
if [ -n "$ENSURE_NAMENODE_DIR" ]; then
if [ ! -d "$ENSURE_NAMENODE_DIR" ]; then
/opt/hadoop/bin/hdfs namenode -format
fi
fi
fi

if [ -n "$ENSURE_SCM_INITIALIZED" ]; then
if [ ! -f "$ENSURE_SCM_INITIALIZED" ]; then
/opt/hadoop/bin/hdfs scm -init
fi
fi

$@
Expand Down

0 comments on commit b347eb4

Please sign in to comment.