JAVA 开发者的必备技巧

kafka 删除 topic

2019-02-27  本文已影响0人  HelloMoney_0ff4
  1. Stop Kafka server
  2. Delete the topic directory with rm -rf command
  3. Connect to Zookeeper instance: zookeeper-shell.sh host:port
  4. ls /brokers/topics
  5. Remove the topic folder from ZooKeeper using rmr /brokers/topics/yourtopic
  6. Restart Kafka server
  7. Confirm if it was deleted or not by using this command kafka-topics.sh --list --zookeeper host:port
上一篇下一篇

猜你喜欢

热点阅读