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:
parent
a85ee11f3b
commit
2ecdd83e0d
|
@ -536,6 +536,7 @@ Release 0.21.0 - Unreleased
|
||||||
HBASE-3024 NPE processing server crash in MetaEditor.addDaughter
|
HBASE-3024 NPE processing server crash in MetaEditor.addDaughter
|
||||||
HBASE-3026 Fixup of "missing" daughters on split is too aggressive
|
HBASE-3026 Fixup of "missing" daughters on split is too aggressive
|
||||||
HBASE-3003 ClassSize constants dont use 'final'
|
HBASE-3003 ClassSize constants dont use 'final'
|
||||||
|
HBASE-3002 Fix zookeepers.sh to work properly with strange JVM options
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-1760 Cleanup TODOs in HTable
|
HBASE-1760 Cleanup TODOs in HTable
|
||||||
|
|
|
@ -48,7 +48,7 @@ if [ "$HBASE_MANAGES_ZK" = "" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$HBASE_MANAGES_ZK" = "true" ]; then
|
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=$"${@// /\\ }"
|
cmd=$"${@// /\\ }"
|
||||||
for zookeeper in $hosts; do
|
for zookeeper in $hosts; do
|
||||||
ssh $HBASE_SSH_OPTS $zookeeper $cmd 2>&1 | sed "s/^/$zookeeper: /" &
|
ssh $HBASE_SSH_OPTS $zookeeper $cmd 2>&1 | sed "s/^/$zookeeper: /" &
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class ZKServerTool {
|
||||||
if (key.startsWith("server.")) {
|
if (key.startsWith("server.")) {
|
||||||
String[] parts = value.split(":");
|
String[] parts = value.split(":");
|
||||||
String host = parts[0];
|
String host = parts[0];
|
||||||
System.out.println(host);
|
System.out.println("ZK host:" + host);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue