|
@@ -2,19 +2,21 @@
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
+
|
|
|
vagrant/run_toxiproxy.sh &
|
|
|
-
|
|
|
while ! nc -q 1 localhost 2181 </dev/null; do echo "Waiting"; sleep 1; done
|
|
|
while ! nc -q 1 localhost 9092 </dev/null; do echo "Waiting"; sleep 1; done
|
|
|
|
|
|
+
|
|
|
for i in 1 2 3 4 5; do
|
|
|
KAFKA_PORT=`expr $i + 9090`
|
|
|
cd ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT} && bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
|
|
|
done
|
|
|
-
|
|
|
while ! nc -q 1 localhost 21805 </dev/null; do echo "Waiting"; sleep 1; done
|
|
|
|
|
|
+
|
|
|
for i in 1 2 3 4 5; do
|
|
|
KAFKA_PORT=`expr $i + 9090`
|
|
|
cd ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT} && bin/kafka-server-start.sh -daemon config/server.properties
|
|
|
done
|
|
|
+while ! nc -q 1 localhost 29095 </dev/null; do echo "Waiting"; sleep 1; done
|