60-10-060-命令-kafka-run-class.sh

文章目录

1.视界

在这里插入图片描述

1. 删除topic

bin/kafka-run-class.sh kafka.admin.DeleteTopicCommand -topic test -zookeeper serverIP:serverPort

这种删除方式只是删除了topic,但是该topic中Partition的数据依然存在,等数据过期之后就会自动删除。(也可以手动删除/tmp/kafka-logs/下的partition信息)

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/112339534
今日推荐