Kafka启动命令
首先要启动zookeeper,然后启动kafka: cd到bin文件夹下,./kafka-server-start.sh ../config/server.properties
启动producer:./kafka-console-producer.sh –broker-list localhost:9092 –topic test
启动consumer:./kafka-console-consumer.sh –zookeeper localhost:2181 –topic test –from-beginning
Written on October 4, 2018