创建Topic
运行命令:
./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic myTopic
查看topic
cd ~/kafka_2.11-1.0.0/
bin/kafka-topics.sh --zookeeper localhost:2181 --describe
查看group消费
cd ~/kafka_2.11-1.0.0/
bin/kafka-consumer-groups.sh --new-consumer --bootstrap-server 127.0.0.1:9092 --group your-group --describe