This extends Getting started with Apache Kafka on Mac tutorial. This assumes that the zookeeper & kafka servers are started as per the previous tutorial. List topics Create a topic first:
1 | /usr/local/kafka_2.11-2.1.0]$ ./bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test |
List topics:
1 2 3 | /usr/local/kafka_2.11-2.1.0]$ ./bin/kafka-topics.sh --list --zookeeper localhost:2181 test |
Delete a topic
1 | /usr/local/kafka_2.11-2.1.0]$ ./bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic test |
This…