halt_cluster.sh 318 B

123456789101112131415
  1. #!/bin/sh
  2. set -ex
  3. for i in 1 2 3 4 5; do
  4. KAFKA_PORT=`expr $i + 9090`
  5. cd ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT} && bin/kafka-server-stop.sh
  6. done
  7. for i in 1 2 3 4 5; do
  8. KAFKA_PORT=`expr $i + 9090`
  9. cd ${KAFKA_INSTALL_ROOT}/kafka-${KAFKA_PORT} && bin/zookeeper-server-stop.sh
  10. done
  11. killall toxiproxy