HBASE-3002. Fix zookeepers.sh to work properly with strange JVM options

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1000698 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2010-09-24 04:10:55 +00:00
parent a85ee11f3b
commit 2ecdd83e0d
3 changed files with 3 additions and 2 deletions

View File

@ -536,6 +536,7 @@ Release 0.21.0 - Unreleased
HBASE-3024 NPE processing server crash in MetaEditor.addDaughter
HBASE-3026 Fixup of "missing" daughters on split is too aggressive
HBASE-3003 ClassSize constants dont use 'final'
HBASE-3002 Fix zookeepers.sh to work properly with strange JVM options
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -48,7 +48,7 @@ if [ "$HBASE_MANAGES_ZK" = "" ]; then
fi
if [ "$HBASE_MANAGES_ZK" = "true" ]; then
hosts=`"$bin"/hbase org.apache.hadoop.hbase.zookeeper.ZKServerTool`
hosts=`"$bin"/hbase org.apache.hadoop.hbase.zookeeper.ZKServerTool | grep '^ZK host:' | sed 's,^ZK host:,,'`
cmd=$"${@// /\\ }"
for zookeeper in $hosts; do
ssh $HBASE_SSH_OPTS $zookeeper $cmd 2>&1 | sed "s/^/$zookeeper: /" &

View File

@ -47,7 +47,7 @@ public class ZKServerTool {
if (key.startsWith("server.")) {
String[] parts = value.split(":");
String host = parts[0];
System.out.println(host);
System.out.println("ZK host:" + host);
}
}
}