Skip to content

Commit

Permalink
HBASE-27275 graceful_stop.sh unable to restore the balance state (apa…
Browse files Browse the repository at this point in the history
…che#4680)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit b431652)
(cherry picked from commit 027165e)
Change-Id: Ic7175d32792e27b5d74c120cc646e71ee546c18f
  • Loading branch information
2005hithlj authored and Apache9 committed Aug 9, 2022
1 parent 7c2d7d8 commit c89c95a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/graceful_stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c89c95a

Please sign in to comment.