litaolitao

导航

 

./kafka-topics.sh --zookeeper ip:port --list

./kafka-topics.sh --create --topic test --zookeeper ip:port --replication-factor 1 --partitions 1

./kafka-console-producer.sh --broker-list ip:port --topic test

/kafka-console-consumer.sh --zookeeper ip:port --topic test --from-beginning

 

kafka document:

http://kafka.apache.org/documentation.html#theconsumer

 

posted on 2016-02-24 16:47  litaolitao  阅读(167)  评论(0编辑  收藏  举报