I am new to Kafka, I have created some topic called Hell0-Kafka3
Now I want to delete it. So I am issuing a command like this:
$ bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic Hello-Kafka3
Topic Hello-Kafka3 is marked for deletion.
Note: This will have no impact if delete.topic.enable is not set to true.
Can someone help me to understand Note: on the last line ??
In the last few versions of Apache's Kafka, deleting a topic is fairly easy. You just need to set one property in the configuration to 'true', and just issue a command to delete a topic. It'll be deleted in no time.
Kafka Delete Topic – Every message Apache Kafka receives stores it in log and by default, it keeps the messages for 168 hrs which is 7 days. To delete the topic or all its messages can be done in several ways and the rest of the article explains these.
You have to set delete.topic.enable
to true in config/server.properties before issuing this delete-topic command, otherwise, Kafka ignores the command you submit and does nothing for the topic.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With