hbase/bin
Junegunn Choi d8d1089649 HBASE-27030 Fix undefined local variable error in draining_servers.rb (#4427)
HBASE-21812 replaced a for-loop with an each block.
Each block introduces a new scope, so a local variable defined inside it
cannot be accessed afterwards.

  NameError: undefined local variable or method `admin' for main:Object
    getServerNames at /opt/khp/hbase/bin/draining_servers.rb:81
        addServers at /opt/khp/hbase/bin/draining_servers.rb:88
            <main> at /opt/khp/hbase/bin/draining_servers.rb:146

This commit defines the admin local variable in the current scope beforehand,
so that we can still access it after the block.

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit 2b573ae377)
2022-05-22 15:07:15 +08:00
..
replication HBASE-10092 Addendum. Move to slf4j. Few changes in bin/ scripts. 2017-12-21 19:26:19 -08:00
test HBASE-26899 Run spotless:apply 2022-05-01 22:41:49 +08:00
chaos-daemon.sh HBASE-24620 : Add a ClusterManager which submits command to ZooKeeper and its Agent which picks and execute those Commands (#2299) 2020-12-21 15:36:02 +05:30
considerAsDead.sh HBASE-26899 Run spotless:apply 2022-05-01 22:41:49 +08:00
draining_servers.rb HBASE-27030 Fix undefined local variable error in draining_servers.rb (#4427) 2022-05-22 15:07:15 +08:00
get-active-master.rb HBASE-19114 addendum. Split out o.a.h.h.zookeeper from hbase-server and hbase-client. Ruby scripts also used ZooKeeperWatcher. 2018-03-03 21:06:21 +05:30
graceful_stop.sh HBASE-25594 Make easier to use graceful_stop on localhost mode (#3054) 2021-03-20 13:47:18 -07:00
hbase HBASE-25058 Export necessary modules when running under JDK11 (#4337) 2022-04-21 23:50:08 +08:00
hbase-cleanup.sh HBASE-26899 Run spotless:apply 2022-05-01 22:41:49 +08:00
hbase-common.sh HBASE-7908 Add jstack logs in hbase-common.sh when killing the server 2013-03-26 15:07:08 +00:00
hbase-config.cmd HBASE-24550 Passing '-h' or '--help' to bin/hbase doesn't do as expected (ADDENDUM) 2020-06-19 22:53:28 +05:30
hbase-config.sh HBASE-26899 Run spotless:apply 2022-05-01 22:41:49 +08:00
hbase-daemon.sh HBASE-18274 hbase autorestart will overwrite the gc log (Fangyuan Deng) 2017-06-27 08:07:55 -07:00
hbase-daemons.sh HBASE-15924 Enhance hbase services autorestart capability to hbase-daemon.sh 2016-12-20 17:37:10 -08:00
hbase-jruby HBASE-5364 Fix source files missing license in 0.92 and trunk (Elliott Clark) 2012-02-10 20:07:36 +00:00
hbase.cmd HBASE-26802 Backport the log4j2 changes to branch-2 (#4166) 2022-03-11 11:17:43 -08:00
hbase_startup.jsh HBASE-25841 Add basic jshell support 2021-05-19 12:02:30 -07:00
hirb.rb HBASE-14067 bundle ruby files for hbase shell into a jar. 2020-10-13 16:29:55 -05:00
local-master-backup.sh HBASE-15924 Enhance hbase services autorestart capability to hbase-daemon.sh 2016-12-20 17:37:10 -08:00
local-regionservers.sh HBASE-20130 (ADDENDUM) Use defaults (16020 & 16030) as base ports when the RS is bound to localhost 2018-03-27 21:25:42 -05:00
master-backup.sh HBASE-26899 Run spotless:apply 2022-05-01 22:41:49 +08:00
region_mover.rb HBASE-18238 rubocop autocorrect for bin/ 2017-08-14 14:04:43 -05:00
region_status.rb HBASE-21812 Address ruby static analysis for shell/bin modules [2nd pass] 2019-02-03 09:53:09 -06:00
regionservers.sh HBASE-26899 Run spotless:apply 2022-05-01 22:41:49 +08:00
rolling-restart.sh HBASE-15924 Enhance hbase services autorestart capability to hbase-daemon.sh 2016-12-20 17:37:10 -08:00
shutdown_regionserver.rb HBASE-21812 Address ruby static analysis for shell/bin modules [2nd pass] 2019-02-03 09:53:09 -06:00
start-hbase.cmd HBASE-6815. [WINDOWS] Provide hbase scripts in order to start HBASE on Windows in a single user mode. (Slavik Krassovsky) 2013-01-25 23:33:22 +00:00
start-hbase.sh HBASE-15924 Enhance hbase services autorestart capability to hbase-daemon.sh 2016-12-20 17:37:10 -08:00
stop-hbase.cmd HBASE-6815. [WINDOWS] Provide hbase scripts in order to start HBASE on Windows in a single user mode. (Slavik Krassovsky) 2013-01-25 23:33:22 +00:00
stop-hbase.sh HBASE-26899 Run spotless:apply 2022-05-01 22:41:49 +08:00
zookeepers.sh HBASE-26899 Run spotless:apply 2022-05-01 22:41:49 +08:00