HBASE-27275 graceful_stop.sh unable to restore the balance state (#4680)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit b431652e48)
This commit is contained in:
LiangJun He 2022-08-09 09:48:51 +08:00 committed by Duo Zhang
parent a85de838ab
commit 6e82a26a51
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ if [ "$nob" == "true" ]; then
HBASE_BALANCER_STATE=false HBASE_BALANCER_STATE=false
else else
log "Disabling load balancer" log "Disabling load balancer"
HBASE_BALANCER_STATE=$(echo 'balance_switch false' | "$bin"/hbase --config "${HBASE_CONF_DIR}" shell -n | tail -1) HBASE_BALANCER_STATE=$(echo 'balance_switch false' | "$bin"/hbase --config "${HBASE_CONF_DIR}" shell -n | grep 'Previous balancer state' | awk -F": " '{print $2}')
log "Previous balancer state was $HBASE_BALANCER_STATE" log "Previous balancer state was $HBASE_BALANCER_STATE"
fi fi