kafka 删除 topic
kafka 删除topic 提示marked for deletion
- [root@logSer config]# kafka-topics.sh --delete --zookeeper localhost:2181 --topic test-group
- Topic test-group is marked for deletion.
- Note: This will have no impact if delete.topic.enable is not set to true.
- [root@logSer config]# kafka-topics.sh --list --zookeeper localhost:2181
- test-group - marked for deletion
- test-topic
- test-user-001
并没有真正删除,如果要真正删除
配置delete.topic.enable=true
配置文件在kafka\config目录
- [root@logSer config]# vi server.properties
- delete.topic.enable=true
- "server.properties" 122L, 5585C written