Skip to content

Commit 6e82a26

Browse files
2005hithljApache9
authored andcommitted
HBASE-27275 graceful_stop.sh unable to restore the balance state (#4680)
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit b431652)
1 parent a85de83 commit 6e82a26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/graceful_stop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if [ "$nob" == "true" ]; then
115115
HBASE_BALANCER_STATE=false
116116
else
117117
log "Disabling load balancer"
118-
HBASE_BALANCER_STATE=$(echo 'balance_switch false' | "$bin"/hbase --config "${HBASE_CONF_DIR}" shell -n | tail -1)
118+
HBASE_BALANCER_STATE=$(echo 'balance_switch false' | "$bin"/hbase --config "${HBASE_CONF_DIR}" shell -n | grep 'Previous balancer state' | awk -F": " '{print $2}')
119119
log "Previous balancer state was $HBASE_BALANCER_STATE"
120120
fi
121121

0 commit comments

Comments
 (0)