HBASE-8030 znode path of online region servers is hard coded in rolling_restart.sh (Rajeshbabu)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1454170 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3361261726
commit
229789adf2
|
@ -149,7 +149,10 @@ else
|
||||||
|
|
||||||
if [ $RR_GRACEFUL -eq 1 ]; then
|
if [ $RR_GRACEFUL -eq 1 ]; then
|
||||||
# gracefully restart all online regionservers
|
# gracefully restart all online regionservers
|
||||||
online_regionservers=`$bin/hbase zkcli ls $zparent/rs 2>&1 | tail -1 | sed "s/\[//" | sed "s/\]//"`
|
zkrs=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool zookeeper.znode.rs`
|
||||||
|
if [ "$zkrs" == "null" ]; then zkrs="rs"; fi
|
||||||
|
zkrs="$zparent/$zkrs"
|
||||||
|
online_regionservers=`$bin/hbase zkcli ls $zkrs 2>&1 | tail -1 | sed "s/\[//" | sed "s/\]//"`
|
||||||
for rs in $online_regionservers
|
for rs in $online_regionservers
|
||||||
do
|
do
|
||||||
rs_parts=(${rs//,/ })
|
rs_parts=(${rs//,/ })
|
||||||
|
|
Loading…
Reference in New Issue