How to remove a theme from DCOS Kafka?

We run Kafka through DCOS. We have a topic that seems to contain some bad data. I would like to delete this topic.

Run: kafka-topics.sh --zookeeper --delete --topic

This suggests that he noted the topic of deletion, but that it would not work, unless "delete.topic.enable = true". Test the setting for each broker using:

dcos kafka broker update 1 --options delete.topic.enable = true`

And then restarted the brokers

The theme still exists and is still marked for deletion. How can I get brokers to remove this topic?

+4
source share
1 answer

, Kafka:

KAFKA_OVERRIDE_DELETE_TOPICS=true

DCOS, "", " ".

, (json ):

...
"env": {
   ...
   "KAFKA_OVERRIDE_DELETE_TOPICS": "true",
   ...
}
...

, :

dcos kafka topic delete <topicname>
0

Source: https://habr.com/ru/post/1623956/


All Articles