kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gwens...@apache.org
Subject kafka git commit: KAFKA-2773; 0.9.0 branch)Fixed broken vagrant provision scripts for static zk/broker cluster
Date Mon, 09 Nov 2015 04:52:32 GMT
Repository: kafka
Updated Branches:
  refs/heads/0.9.0 1fd79f57b -> 48013222f


KAFKA-2773; 0.9.0 branch)Fixed broken vagrant provision scripts for static zk/broker cluster

Author: Geoff Anderson <geoff@confluent.io>

Reviewers: Gwen Shapira

Closes #455 from granders/KAFKA-2773-0.9.0-vagrant-fix


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/48013222
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/48013222
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/48013222

Branch: refs/heads/0.9.0
Commit: 48013222fd426685d2907a760290d2e7c7d25aea
Parents: 1fd79f5
Author: Geoff Anderson <geoff@confluent.io>
Authored: Sun Nov 8 20:52:16 2015 -0800
Committer: Gwen Shapira <cshapi@gmail.com>
Committed: Sun Nov 8 20:52:16 2015 -0800

----------------------------------------------------------------------
 vagrant/broker.sh |  7 ++++---
 vagrant/zk.sh     | 13 +++++++------
 2 files changed, 11 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/48013222/vagrant/broker.sh
----------------------------------------------------------------------
diff --git a/vagrant/broker.sh b/vagrant/broker.sh
index bc040c9..954157a 100644
--- a/vagrant/broker.sh
+++ b/vagrant/broker.sh
@@ -24,13 +24,14 @@ PUBLIC_ADDRESS=$2
 PUBLIC_ZOOKEEPER_ADDRESSES=$3
 JMX_PORT=$4
 
-cd /opt/kafka
+kafka_dir=/opt/kafka-trunk
+cd $kafka_dir
 
 sed \
     -e 's/broker.id=0/'broker.id=$BROKER_ID'/' \
     -e 's/#advertised.host.name=<hostname routable by clients>/'advertised.host.name=$PUBLIC_ADDRESS'/'
\
     -e 's/zookeeper.connect=localhost:2181/'zookeeper.connect=$PUBLIC_ZOOKEEPER_ADDRESSES'/'
\
-    /opt/kafka/config/server.properties > /opt/kafka/config/server-$BROKER_ID.properties
+    $kafka_dir/config/server.properties > $kafka_dir/config/server-$BROKER_ID.properties
 
 echo "Killing server"
 bin/kafka-server-stop.sh || true
@@ -40,4 +41,4 @@ if [[  -n $JMX_PORT ]]; then
   export JMX_PORT=$JMX_PORT
   export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=$PUBLIC_ADDRESS -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false  -Dcom.sun.management.jmxremote.ssl=false
"
 fi
-bin/kafka-server-start.sh /opt/kafka/config/server-$BROKER_ID.properties 1>> /tmp/broker.log
2>> /tmp/broker.log &
+bin/kafka-server-start.sh $kafka_dir/config/server-$BROKER_ID.properties 1>> /tmp/broker.log
2>> /tmp/broker.log &

http://git-wip-us.apache.org/repos/asf/kafka/blob/48013222/vagrant/zk.sh
----------------------------------------------------------------------
diff --git a/vagrant/zk.sh b/vagrant/zk.sh
index 6fc4b7c..dcc4810 100644
--- a/vagrant/zk.sh
+++ b/vagrant/zk.sh
@@ -23,14 +23,15 @@ ZKID=$1
 NUM_ZK=$2
 JMX_PORT=$3
 
-cd /opt/kafka
+kafka_dir=/opt/kafka-trunk
+cd $kafka_dir
 
-cp /opt/kafka/config/zookeeper.properties /opt/kafka/config/zookeeper-$ZKID.properties
-echo "initLimit=5" >> /opt/kafka/config/zookeeper-$ZKID.properties
-echo "syncLimit=2" >> /opt/kafka/config/zookeeper-$ZKID.properties
-echo "quorumListenOnAllIPs=true" >> /opt/kafka/config/zookeeper-$ZKID.properties
+cp $kafka_dir/config/zookeeper.properties $kafka_dir/config/zookeeper-$ZKID.properties
+echo "initLimit=5" >> $kafka_dir/config/zookeeper-$ZKID.properties
+echo "syncLimit=2" >> $kafka_dir/config/zookeeper-$ZKID.properties
+echo "quorumListenOnAllIPs=true" >> $kafka_dir/config/zookeeper-$ZKID.properties
 for i in `seq 1 $NUM_ZK`; do
-    echo "server.${i}=zk${i}:2888:3888" >> /opt/kafka/config/zookeeper-$ZKID.properties
+    echo "server.${i}=zk${i}:2888:3888" >> $kafka_dir/config/zookeeper-$ZKID.properties
 done
 
 mkdir -p /tmp/zookeeper


Mime
View raw message