File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ moving regions"
3333 echo " maxthreads xx Limit the number of threads used by the region mover. Default value is 1."
3434 echo " movetimeout xx Timeout for moving regions. If regions are not moved by the timeout value,\
3535exit with error. Default value is INT_MAX."
36- echo " hostname Hostname of server we are to stop "
36+ echo " hostname Hostname to stop; match what HBase uses; pass 'localhost' if local to avoid ssh "
3737 echo " e|failfast Set -e so exit immediately if any command exits with non-zero status"
3838 echo " nob|nobalancer Do not manage balancer states. This is only used as optimization in \
3939rolling_restart.sh to avoid multiple calls to hbase shell"
@@ -108,6 +108,10 @@ localhostname=`/bin/hostname -f`
108108if [ " $localhostname " == " $hostname " ]; then
109109 local=true
110110fi
111+ if [ " $localhostname " == " $hostname " ] || [ " $hostname " == " localhost" ]; then
112+ local=true
113+ hostname=$localhostname
114+ fi
111115
112116if [ " $nob " == " true" ]; then
113117 log " [ $0 ] skipping disabling balancer -nob argument is used"
You can’t perform that action at this time.
0 commit comments