当前位置:   article > 正文

Kafka提示:Note: This will have no impact if delete.topic.enable is not set to true.

this will have no impact if delete.topic.enable is not set to true

问题

执行topic删除命令时,出现提示

Topic test is marked for deletion.
Note: This will have no impact if delete.topic.enable is not set to true.

这条命令其实并不执行删除动作,仅仅是在zookeeper上标记该topic要被删除而已,同时也提醒用户一定要提前打开delete.topic.enable开关,否则删除动作是不会执行的

解决

在server.properties中设置delete.topic.enable参数为ture
在Kafka版本1.0之后,server.properties配置文件中,delete.topic.enable不再显示设置,默认为true,如果需要改为false,可以自己添加,说明链接:说明

Topic deletion is now enabled by default, since the functionality is now stable. Users who wish to to retain the previous behavior should set the broker config delete.topic.enable to false. Keep in mind that topic deletion removes data and the operation is not reversible (i.e. there is no “undelete” operation)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Li_阴宅/article/detail/982068
推荐阅读
相关标签
  

闽ICP备14008679号