kafka 一些命令

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

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

 

./bin/kafka-server-stop.sh

 

bin/kafka-topics.sh --create --zookeeper style-trans1:2181,style-trans2:2181,style-trans3:2181 --replication-factor 1 --partitions 5 --topic test

bin/kafka-console-producer.sh --broker-list style-trans1:9092,style-trans2:9092,style-trans3:9092 --topic test

bin/kafka-console-consumer.sh --zookeeper style-trans1:2181,style-trans2:2181,style-trans3:2181 --from-beginning --topic test

你可能感兴趣的:(kafka)