From 58400036862314c763d3a41e3e1abc227317f357 Mon Sep 17 00:00:00 2001 From: Peter Somogyi Date: Fri, 19 Mar 2021 12:32:25 +0100 Subject: [PATCH] Revert "HBOPS-25594 Make easier to use graceful_stop on localhost mode (#3054)" This reverts commit 9e701bb1d356c701d6a6b209229ef2a403695615. --- bin/graceful_stop.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/graceful_stop.sh b/bin/graceful_stop.sh index 05919ce72d6..89446532101 100755 --- a/bin/graceful_stop.sh +++ b/bin/graceful_stop.sh @@ -33,7 +33,7 @@ moving regions" echo " maxthreads xx Limit the number of threads used by the region mover. Default value is 1." echo " movetimeout xx Timeout for moving regions. If regions are not moved by the timeout value,\ exit with error. Default value is INT_MAX." - echo " hostname Hostname to stop; match what HBase uses; pass 'localhost' if local to avoid ssh" + echo " hostname Hostname of server we are to stop" echo " e|failfast Set -e so exit immediately if any command exits with non-zero status" echo " nob|nobalancer Do not manage balancer states. This is only used as optimization in \ rolling_restart.sh to avoid multiple calls to hbase shell" @@ -108,10 +108,6 @@ localhostname=`/bin/hostname -f` if [ "$localhostname" == "$hostname" ]; then local=true fi -if [ "$localhostname" == "$hostname" ] || [ "$hostname" == "localhost" ]; then - local=true - hostname=$localhostname -fi if [ "$nob" == "true" ]; then log "[ $0 ] skipping disabling balancer -nob argument is used"