kafka官网:http://kafka.apache.org/0102/documentation.html#quickstart
kafka安装和启动:http://orchome.com/6
常用命令:
Test kafka cluster:
bin/kafka-create-topic.sh --zookeeper localhost:2181 --replica 3 --partition 1 --topic topic-name
bin/kafka-list-topic.sh --zookeeper localhost:2181 --topic topic-name
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic topic-name
input some messages
bin/kafka-console-consumer.sh --zookeeper localhost:2181 --from-beginning --topic topic-name