创建
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
Leave a Reply