Skip to content

Commit 3e806a7

Browse files
committed
Revert "HBOPS-25594 Make easier to use graceful_stop on localhost mode (#3054)"
This reverts commit 728d4f5. Reverted because it an addendum and main patch did not land on this branch so removing.
1 parent 728d4f5 commit 3e806a7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bin/graceful_stop.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ moving regions"
3232
echo " maxthreads xx Limit the number of threads used by the region mover. Default value is 1."
3333
echo " movetimeout xx Timeout for moving regions. If regions are not moved by the timeout value,\
3434
exit with error. Default value is INT_MAX."
35-
echo " hostname Hostname to stop; match what HBase uses; pass 'localhost' if local to avoid ssh"
35+
echo " hostname Hostname of server we are to stop"
3636
echo " e|failfast Set -e so exit immediately if any command exits with non-zero status"
3737
echo " nob| nobalancer Do not manage balancer states. This is only used as optimization in \
3838
rolling_restart.sh to avoid multiple calls to hbase shell"
@@ -100,10 +100,6 @@ localhostname=`/bin/hostname`
100100
if [ "$localhostname" == "$hostname" ]; then
101101
local=true
102102
fi
103-
if [ "$localhostname" == "$hostname" ] || [ "$hostname" == "localhost" ]; then
104-
local=true
105-
hostname=$localhostname
106-
fi
107103

108104
if [ "$nob" == "true" ]; then
109105
log "[ $0 ] skipping disabling balancer -nob argument is used"

0 commit comments

Comments
 (0)