HBASE-12513 Graceful stop script does not restore the balancer state

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Florin Broasca 2014-11-18 15:53:55 +02:00 committed by stack
parent 7418bdb623
commit d3c9425c9b
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ fi
# Restore balancer state
if [ $HBASE_BALANCER_STATE != "false" ]; then
log "Restoring balancer state to " $HBASE_BALANCER_STATE
log "balance_switch $HBASE_BALANCER_STATE" | "$bin"/hbase --config ${HBASE_CONF_DIR} shell &> /dev/null
echo "balance_switch $HBASE_BALANCER_STATE" | "$bin"/hbase --config ${HBASE_CONF_DIR} shell &> /dev/null
fi
# Cleanup tmp files.