Index: hbase =================================================================== --- hbase +++ hbase @@ -225,6 +225,12 @@ if [ "$1" != "stop" ] ; then HBASE_OPTS="$HBASE_OPTS $HBASE_REGIONSERVER_OPTS" fi +elif [ "$COMMAND" = "monitor" ] ; then + CLASS='org.apache.hadoop.hbase.monitor.RegionServerFailureDetection' + if [ "$1" != "stop" ] ; then + HBASE_OPTS="" + JAVA_HEAP_MAX="-Xmx1024m" + fi elif [ "$COMMAND" = "thrift" ] ; then CLASS='org.apache.hadoop.hbase.thrift.ThriftServer' if [ "$1" != "stop" ] ; then Index: start-hbase.sh =================================================================== --- start-hbase.sh +++ start-hbase.sh @@ -50,5 +50,7 @@ "$bin"/hbase-daemons.sh --config "${HBASE_CONF_DIR}" \ --hosts "${HBASE_REGIONSERVERS}" start regionserver "$bin"/hbase-daemons.sh --config "${HBASE_CONF_DIR}" \ + --hosts "${HBASE_REGIONSERVERS}" start monitor + "$bin"/hbase-daemons.sh --config "${HBASE_CONF_DIR}" \ --hosts "${HBASE_BACKUP_MASTERS}" start master-backup fi Index: stop-hbase.sh =================================================================== --- stop-hbase.sh +++ stop-hbase.sh @@ -29,6 +29,10 @@ . "$bin"/hbase-config.sh +# stop monitors firstly + "$bin"/hbase-daemons.sh --config "${HBASE_CONF_DIR}" \ + --hosts "${HBASE_REGIONSERVERS}" stop monitor + # variables needed for stop command if [ "$HBASE_LOG_DIR" = "" ]; then export HBASE_LOG_DIR="$HBASE_HOME/logs"