kafka删除topicName 提示marked for deletion

来源:互联网 发布:淘宝用户名被冻结 编辑:程序博客网 时间:2024/06/05 05:32

kafka 删除topic 提示marked for deletion

[python] view plain copy
  1. [root@shadoop11 kafka_2.10]# kafka-topics.sh --delete --zookeeper localhost:2181 --topic yuhui-001   
  2. Topic yuhui-001 is marked for deletion.   
  3. Note: This will have no impact if delete.topic.enable is not set to true.  
  4. [root@shadoop11  config]# kafka-topics.sh --list --zookeeper localhost:2181  
  5. yuhui-001 - marked for deletion  
  6. yuhui-002  
  7. yuhui-003  

并没有真正删除,如果要真正删除

在每一台机器中的kafka_2.10/config/server.properties 文件加入  delete.topic.enable=true

[python] view plain copy
  1. [root@shadoop11 kafka_2.10]# vi config/server.properties  
  2. delete.topic.enable=true  

最后所有机器重新启动kafka
原创粉丝点击