-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to force delete a kafka topic when delete fails? #6
Comments
On a MAC, I changed directories to: /usr/local/Cellar/zookeeper/3.4.9/bin And actually, if you don't add the topic name, it removes all topics. |
Thanks guys ... it worked . Most advised solutions missed on "rmr /config/topics/<topic_name>" |
I have followed @darrenfu 's suggestion to the T, checked all the directories to be sure those are cleaned, and they are. However, upon restarting the Kafka Server, it STILL is trying to get a reference to old topics and trying to delete them, failing to rename them when deleting, and shutting down the broker because all the log dirs have failed. Any suggestions from here? |
If you want to delete all the topics created, Then Stop Kafka and zookeeper and delete data/log directories of both. |
*** This is a known issue ***
Even in the latest Kafka version (0.9.0), the deletion command below isn't always working.
(Note: Topic deletion option is disabled by default. To enable it set the server config)
Bug to track: KAFKA-1397
*** The only way to delete a topic permanently is as follows: ***
sudo supervisorctl stop kafka-broker
sudo rm -rf <kafka_data_dir>/<topic_name>*
bin/zkCli.sh
sudo supervisorctl start kafka-broker
The text was updated successfully, but these errors were encountered: