After deleting topic as follows:
$ ./bin/kafka-topics.sh --delete --zookeeper localhost:2181 --topic my-topic
Topic my-topic is marked for deletion.
Note: This will have no impact if delete.topic.enable is not set to true.
$
you will still see the topic with `marked for deletion` as follows:
$ ./bin/kafka-topics.sh --list --zookeeper localhost:2181
my-topic - marked for deletion
$
To clean it up, add the following line to `config/server.properties`:
delete.topic.enable=true
and restart the Kafka.
You can see the topic has gone away soon.
No comments:
Post a Comment