Think before you speak, read before you think.

kafka topic 创建和删除

创建

bin/kafka-topics.sh --create --zookeeper localhost:2181 --topic api-gateway --partitions 1 --replication-factor 3

删除

bin/kafka-topics.sh --delete --zookeeper localhost:2181 --topic api-gateway

查看

/kafka-topics.sh --list --zookeeper localhost:2181

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *