diff --git a/hbase/1.2.6/bootstrap.sh b/hbase/1.2.6/bootstrap.sh new file mode 100755 index 0000000..c0f9827 --- /dev/null +++ b/hbase/1.2.6/bootstrap.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +## replace config +: ${EXTRA_CONF_DIR:=/config/hbase} + +if [ -d "$EXTRA_CONF_DIR" ]; then + cp $EXTRA_CONF_DIR/* $HBASE_HOME/conf/ +fi + +/usr/sbin/sshd + +## stop all in case master starts far behind +# $HBASE_HOME/bin/stop-hbase.sh +$HBASE_HOME/bin/start-hbase.sh + +if [[ $1 == "-d" ]]; then + while true; do sleep 1000; done +fi + +if [[ $1 == "-bash" ]]; then + /bin/bash +fi