Kafka教程
1、创建topic
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
2、生产消息
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
3、消费消息
bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning
4、查看所有topic
bin/kafka-topics.sh --list --zookeeper localhost:2181