Browse Source

Let brokers connect to *all* zookeepers

Evan Huus 11 years ago
parent
commit
a11b33f6d1
2 changed files with 1 additions and 2 deletions
  1. 0 1
      vagrant/install_cluster.sh
  2. 1 1
      vagrant/server.properties

+ 0 - 1
vagrant/install_cluster.sh

@@ -20,7 +20,6 @@ for i in 1 2 3 4 5; do
     # broker configuration
     cp ${REPOSITORY_ROOT}/vagrant/server.properties ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}/config/
     sed -i s/KAFKAID/${KAFKA_PORT}/g ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}/config/server.properties
-    sed -i s/ZK_PORT/${ZK_PORT}/g ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}/config/server.properties
     sed -i s/KAFKA_HOSTNAME/${KAFKA_HOSTNAME}/g ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}/config/server.properties
 
     KAFKA_DATADIR="${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT}/data"

+ 1 - 1
vagrant/server.properties

@@ -115,7 +115,7 @@ log.cleaner.enable=false
 # server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002".
 # You can also append an optional chroot string to the urls to specify the
 # root directory for all kafka znodes.
-zookeeper.connect=localhost:ZK_PORT
+zookeeper.connect=localhost:2181,localhost:2182,localhost:2183,localhost:2184,localhost:2185
 
 # Timeout in ms for connecting to zookeeper
 zookeeper.connection.timeout.ms=1000000