kafka 删除 topic

作者: HelloMoney_0ff4 | 来源:发表于2019-02-27 18:24 被阅读0次
    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

    相关文章

      网友评论

        本文标题:kafka 删除 topic

        本文链接:https://www.haomeiwen.com/subject/ortquqtx.html