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:
parent
a85de838ab
commit
6e82a26a51
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue