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:
parent
59825ac875
commit
463f847bd4
|
@ -32,6 +32,7 @@ Trunk (unreleased changes)
|
|||
HADOOP-1746 Clean up findbugs warnings
|
||||
HADOOP-1757 Bloomfilters: single argument constructor, use enum for bloom
|
||||
filter types
|
||||
HADOOP-1802 Startup scripts should wait until hdfs as cleared 'safe mode'
|
||||
|
||||
|
||||
Below are the list of changes before 2007-08-18
|
||||
|
|
|
@ -32,5 +32,11 @@ bin=`cd "$bin"; pwd`
|
|||
. "$bin"/hbase-config.sh
|
||||
|
||||
# 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-daemons.sh --config="${HADOOP_CONF_DIR}" --hbaseconfig="${HBASE_CONF_DIR}" regionserver start
|
||||
|
|
Loading…
Reference in New Issue