Kafka基本操作


cd kafka_2.11-0.11.0.1

bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties


bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic secKill2

多个分区
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 2 --topic secKill3

posted @ 2017-10-25 21:39  Ready!  阅读(209)  评论(0编辑  收藏  举报