|
@@ -8,10 +8,12 @@ mkdir -p ${KAFKA_INSTALL_ROOT}
|
|
|
if [ ! -f ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_VERSION}.tgz ]; then
|
|
|
wget --quiet http://apache.mirror.gtcomm.net/kafka/${KAFKA_VERSION}/kafka_2.10-${KAFKA_VERSION}.tgz -O ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_VERSION}.tgz
|
|
|
fi
|
|
|
-if [ ! -f ${KAFKA_INSTALL_ROOT}/toxiproxy ]; then
|
|
|
- wget --quiet https://github.com/Shopify/toxiproxy/releases/download/v${TOXIPROXY_VERSION}/toxiproxy-linux-amd64 -O ${KAFKA_INSTALL_ROOT}/toxiproxy
|
|
|
- chmod +x ${KAFKA_INSTALL_ROOT}/toxiproxy
|
|
|
+if [ ! -f ${KAFKA_INSTALL_ROOT}/toxiproxy-${TOXIPROXY_VERSION} ]; then
|
|
|
+ wget --quiet https://github.com/Shopify/toxiproxy/releases/download/v${TOXIPROXY_VERSION}/toxiproxy-linux-amd64 -O ${KAFKA_INSTALL_ROOT}/toxiproxy-${TOXIPROXY_VERSION}
|
|
|
+ chmod +x ${KAFKA_INSTALL_ROOT}/toxiproxy-${TOXIPROXY_VERSION}
|
|
|
fi
|
|
|
+rm -f ${KAFKA_INSTALL_ROOT}/toxiproxy
|
|
|
+ln -s ${KAFKA_INSTALL_ROOT}/toxiproxy-${TOXIPROXY_VERSION} ${KAFKA_INSTALL_ROOT}/toxiproxy
|
|
|
|
|
|
for i in 1 2 3 4 5; do
|
|
|
ZK_PORT=`expr $i + 2180`
|