栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

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

Kafka提示:Note: 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)

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/734916.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号