### 删除topic ### 先查看我们有哪些topic: ### 命令:`./kafka-topics.sh --list --zookeeper 10.10.15.132:2181` ### ``` ./kafka-topics.sh --list --zookeeper 10.10.15.132:2181 __consumer_offsets study-topic version1-topic xdclass-topic ``` ### 删除version1-topic ### 命令:`./kafka-topics.sh --zookeeper 10.10.15.132:2181 --delete --topic version1-topic` ### ``` ./kafka-topics.sh --zookeeper 10.10.15.132:2181 --delete --topic version1-topic Topic version1-topic is marked for deletion. Note: This will have no impact if delete.topic.enable is not set to true. [root@localhost bin]# ./kafka-topics.sh --list --zookeeper 10.10.15.132:2181 __consumer_offsets study-topic xdclass-topic ``` ### ### 查看broker节点topic状态信息 ### 命令:`./kafka-topics.sh --describe --zookeeper 10.10.15.132:2181 --topic xdclass-topic` ### ``` [root@localhost bin]# ./kafka-topics.sh --describe --zookeeper 10.10.15.132:2181 --topic xdclass-topic Topic: xdclass-topic TopicId: -Z9LjuRtSJWzl9J6ZlVzqQ PartitionCount: 1 ReplicationFactor: 1 Configs: Topic: xdclass-topic Partition: 0 Leader: 0 Replicas: 0 Isr: 0 ```