hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1454171 - /hbase/branches/0.95/bin/rolling-restart.sh
Date Thu, 07 Mar 2013 23:46:32 GMT
Author: tedyu
Date: Thu Mar  7 23:46:32 2013
New Revision: 1454171

URL: http://svn.apache.org/r1454171
Log:
HBASE-8030 znode  path of online region servers is hard coded in rolling_restart.sh (Rajeshbabu)


Modified:
    hbase/branches/0.95/bin/rolling-restart.sh

Modified: hbase/branches/0.95/bin/rolling-restart.sh
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/bin/rolling-restart.sh?rev=1454171&r1=1454170&r2=1454171&view=diff
==============================================================================
--- hbase/branches/0.95/bin/rolling-restart.sh (original)
+++ hbase/branches/0.95/bin/rolling-restart.sh Thu Mar  7 23:46:32 2013
@@ -149,7 +149,10 @@ else 
 
   if [ $RR_GRACEFUL -eq 1 ]; then
     # 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
     do
         rs_parts=(${rs//,/ })



Mime
View raw message