Topic
新建Topic
bin/kafka-topics.sh --zookeeper <zookeeper connect> --create --topic <string> --replication-factor <integer> --partitions <integer>
删除Topic
bin/kafka-topics.sh --zookeeper <zookeeper connect> --delete --topic <string>
查看Topic列表
bin/kafka-topics.sh --zookeeper <zookeeper connect> --list
查看所有Topic的详细信息
bin/kafka-topics.sh --zookeeper <zookeeper connect> --describe
增加Partition个数
bin/kafka-topics.sh --zookeeper <zookeeper connect> --alter --topic <string> --partitions <integer>
查看指定Topic的详细信息
bin/kafka-topics.sh --zookeeper <zookeeper connect> --describ