create_topics.sh 386 B

12345678
  1. #!/bin/sh
  2. set -ex
  3. cd ${KAFKA_INSTALL_ROOT}/kafka-9092
  4. bin/kafka-topics.sh --create --partitions 1 --replication-factor 3 --topic test.1 --zookeeper localhost:2181
  5. bin/kafka-topics.sh --create --partitions 4 --replication-factor 3 --topic test.4 --zookeeper localhost:2181
  6. bin/kafka-topics.sh --create --partitions 64 --replication-factor 3 --topic test.64 --zookeeper localhost:2181