kafka 删除 topic

 

kafka 删除topic 提示marked for deletion

 

[html] view plain copy
 
  1. [root@logSer config]# kafka-topics.sh --delete --zookeeper localhost:2181 --topic test-group        
  2. Topic test-group is marked for deletion.  
  3. Note: This will have no impact if delete.topic.enable is not set to true.  
  4. [root@logSer config]# kafka-topics.sh --list --zookeeper localhost:2181  
  5. test-group - marked for deletion  
  6. test-topic  
  7. test-user-001  


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

 

配置delete.topic.enable=true

配置文件在kafka\config目录

 

[html] view plain copy
 
  1. [root@logSer config]# vi server.properties   
  2. delete.topic.enable=true  
  3. "server.properties" 122L, 5585C written  
posted @   双子星世界  阅读(223)  评论(0编辑  收藏  举报
编辑推荐:
· ASP.NET Core 模型验证消息的本地化新姿势
· 对象命名为何需要避免'-er'和'-or'后缀
· SQL Server如何跟踪自动统计信息更新?
· AI与.NET技术实操系列:使用Catalyst进行自然语言处理
· 分享一个我遇到过的“量子力学”级别的BUG。
阅读排行:
· C# 中比较实用的关键字,基础高频面试题!
· .NET 10 Preview 2 增强了 Blazor 和.NET MAUI
· 为什么AI教师难以实现
· 如何让低于1B参数的小型语言模型实现 100% 的准确率
· AI Agent爆火后,MCP协议为什么如此重要!
点击右上角即可分享
微信分享提示