You are on page 1of 1

Delete Topic:

Method 1:

Deleting topic isn't always working in 0.8.1.1

Deletion should be working in the next release, 0.8.2

kafka-topics.sh --delete --zookeeper localhost:2181 --topic your_topic_name

Topic your_topic_name is marked for deletion.


Note: This will have no impact if delete.topic.enable is not set to true.

Method 2:

Deletion of a topic has been supported since 0.8.2.x version. You have to enable topic
deletion (setting delete.topic.enable to true) on all brokers first.
Follow this step by step process for manual deletion of topics
1. Stop Kafka server
2. Delete the topic directory with rm -rf command
3. Connect to Zookeeper instance: zookeeper-shell.sh host:port
4. ls /brokers/topics
5. Remove the topic folder from ZooKeeper using rmr /brokers/topics/yourtopic
6. Restart Kafka server
7. Confirm if it was deleted or not by using this command kafka-topics.sh --list --zookeeper
host:port

Multiple Consumers in Node:

https://stackoverflow.com/questions/42003527/kafka-node-several-consumers

You might also like