HBASE-14531 graceful_stop.sh "if [ \"$local\" ]" condition unexpected behaviour (Samir Ahmic)
This commit is contained in:
parent
3bac31b2a4
commit
71d41e0c9c
|
@ -104,7 +104,7 @@ hosts="/tmp/$(basename $0).$$.tmp"
|
||||||
echo $hostname >> $hosts
|
echo $hostname >> $hosts
|
||||||
if [ "$thrift" != "" ]; then
|
if [ "$thrift" != "" ]; then
|
||||||
log "Stopping thrift server on $hostname"
|
log "Stopping thrift server on $hostname"
|
||||||
if [ "$local" ]; then
|
if [ "$local" == true ]; then
|
||||||
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} stop thrift
|
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} stop thrift
|
||||||
else
|
else
|
||||||
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} stop thrift
|
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} stop thrift
|
||||||
|
@ -112,21 +112,21 @@ if [ "$thrift" != "" ]; then
|
||||||
fi
|
fi
|
||||||
if [ "$rest" != "" ]; then
|
if [ "$rest" != "" ]; then
|
||||||
log "Stopping rest server on $hostname"
|
log "Stopping rest server on $hostname"
|
||||||
if [ "$local" ]; then
|
if [ "$local" == true ]; then
|
||||||
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} stop rest
|
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} stop rest
|
||||||
else
|
else
|
||||||
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} stop rest
|
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} stop rest
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
log "Stopping regionserver on $hostname"
|
log "Stopping regionserver on $hostname"
|
||||||
if [ "$local" ]; then
|
if [ "$local" == true ]; then
|
||||||
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} stop regionserver
|
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} stop regionserver
|
||||||
else
|
else
|
||||||
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} stop regionserver
|
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} stop regionserver
|
||||||
fi
|
fi
|
||||||
if [ "$restart" != "" ]; then
|
if [ "$restart" != "" ]; then
|
||||||
log "Restarting regionserver on $hostname"
|
log "Restarting regionserver on $hostname"
|
||||||
if [ "$local" ]; then
|
if [ "$local" == true ]; then
|
||||||
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} start regionserver
|
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} start regionserver
|
||||||
else
|
else
|
||||||
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} start regionserver
|
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} start regionserver
|
||||||
|
@ -134,7 +134,7 @@ if [ "$restart" != "" ]; then
|
||||||
if [ "$thrift" != "" ]; then
|
if [ "$thrift" != "" ]; then
|
||||||
log "Restarting thrift server on $hostname"
|
log "Restarting thrift server on $hostname"
|
||||||
# -b 0.0.0.0 says listen on all interfaces rather than just default.
|
# -b 0.0.0.0 says listen on all interfaces rather than just default.
|
||||||
if [ "$local" ]; then
|
if [ "$local" == true ]; then
|
||||||
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} start thrift -b 0.0.0.0
|
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} start thrift -b 0.0.0.0
|
||||||
else
|
else
|
||||||
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} start thrift -b 0.0.0.0
|
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} start thrift -b 0.0.0.0
|
||||||
|
@ -142,7 +142,7 @@ if [ "$restart" != "" ]; then
|
||||||
fi
|
fi
|
||||||
if [ "$rest" != "" ]; then
|
if [ "$rest" != "" ]; then
|
||||||
log "Restarting rest server on $hostname"
|
log "Restarting rest server on $hostname"
|
||||||
if [ "$local" ]; then
|
if [ "$local" == true ]; then
|
||||||
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} start rest
|
"$bin"/hbase-daemon.sh --config ${HBASE_CONF_DIR} start rest
|
||||||
else
|
else
|
||||||
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} start rest
|
"$bin"/hbase-daemons.sh --config ${HBASE_CONF_DIR} --hosts ${hosts} start rest
|
||||||
|
|
Loading…
Reference in New Issue