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
948b323075
commit
45d7562c28
|
@ -115,7 +115,7 @@ if [ "$nob" == "true" ]; then
|
|||
HBASE_BALANCER_STATE=false
|
||||
else
|
||||
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"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue