HADOOP-1802 Startup scripts should wait until hdfs as cleared 'safe mode'

M    bin/start-hbase.sh
    Wait to exit 'safe mode' before proceeding w/ startup. If the wait
    fails, usually because there is no fs, exit with error.



git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@571211 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2007-08-30 15:39:11 +00:00
parent 59825ac875
commit 463f847bd4
2 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,7 @@ Trunk (unreleased changes)
HADOOP-1746 Clean up findbugs warnings HADOOP-1746 Clean up findbugs warnings
HADOOP-1757 Bloomfilters: single argument constructor, use enum for bloom HADOOP-1757 Bloomfilters: single argument constructor, use enum for bloom
filter types filter types
HADOOP-1802 Startup scripts should wait until hdfs as cleared 'safe mode'
Below are the list of changes before 2007-08-18 Below are the list of changes before 2007-08-18

View File

@ -32,5 +32,11 @@ bin=`cd "$bin"; pwd`
. "$bin"/hbase-config.sh . "$bin"/hbase-config.sh
# start hbase daemons # start hbase daemons
"${HADOOP_HOME}"/bin/hadoop dfsadmin -safemode wait
errCode=$?
if [ $errCode -ne 0 ]
then
exit $errCode
fi
"$bin"/hbase-daemon.sh --config="${HADOOP_CONF_DIR}" --hbaseconfig="${HBASE_CONF_DIR}" master start "$bin"/hbase-daemon.sh --config="${HADOOP_CONF_DIR}" --hbaseconfig="${HBASE_CONF_DIR}" master start
"$bin"/hbase-daemons.sh --config="${HADOOP_CONF_DIR}" --hbaseconfig="${HBASE_CONF_DIR}" regionserver start "$bin"/hbase-daemons.sh --config="${HADOOP_CONF_DIR}" --hbaseconfig="${HBASE_CONF_DIR}" regionserver start