Index: bin/local-master-backup.sh =================================================================== --- bin/local-master-backup.sh (revision 1490122) +++ bin/local-master-backup.sh (working copy) @@ -27,12 +27,14 @@ if [ $# -lt 2 ]; then S=`basename "${BASH_SOURCE-$0}"` - echo "Usage: $S [start|stop] offset(s)" + echo "Usage: $S [--config ] [start|stop] offset(s)" echo "" echo " e.g. $S start 1" exit fi +. "$bin"/hbase-config.sh + # sanity check: make sure your master opts don't use ports [i.e. JMX/DBG] export HBASE_MASTER_OPTS=" " @@ -43,7 +45,7 @@ -D hbase.master.port=`expr 60000 + $DN` \ -D hbase.master.info.port=`expr 60010 + $DN` \ --backup" - "$bin"/hbase-daemon.sh $1 master $HBASE_MASTER_ARGS + "$bin"/hbase-daemon.sh --config "${HBASE_CONF_DIR}" $1 master $HBASE_MASTER_ARGS } cmd=$1 Index: bin/local-regionservers.sh =================================================================== --- bin/local-regionservers.sh (revision 1490122) +++ bin/local-regionservers.sh (working copy) @@ -27,12 +27,14 @@ if [ $# -lt 2 ]; then S=`basename "${BASH_SOURCE-$0}"` - echo "Usage: $S [start|stop] offset(s)" + echo "Usage: $S [--config ] [start|stop] offset(s)" echo "" echo " e.g. $S start 1 2" exit fi +. "$bin"/hbase-config.sh + # sanity check: make sure your regionserver opts don't use ports [i.e. JMX/DBG] export HBASE_REGIONSERVER_OPTS=" " @@ -42,7 +44,7 @@ HBASE_REGIONSERVER_ARGS="\ -D hbase.regionserver.port=`expr 60200 + $DN` \ -D hbase.regionserver.info.port=`expr 60300 + $DN`" - "$bin"/hbase-daemon.sh $1 regionserver $HBASE_REGIONSERVER_ARGS + "$bin"/hbase-daemon.sh --config "${HBASE_CONF_DIR}" $1 regionserver $HBASE_REGIONSERVER_ARGS } cmd=$1