查看服务器中的所有topic
kafka-topics.sh -list --zookeeper zkKafka1:2181
创建一个topic
bash-5.1# kafka-topics.sh --create --zookeeper zkKafka1:2181 --topic first --partitions 2 --replication-factor 2
Created topic "first".
查询topic详情
kafka-topics.sh --describe --topic first --zookeeper zkKafka1:2181
网友评论