kafka

bin/kafka-topics.sh --create --zookeeper bd001:2181 --partitions 2 --replication-factor 2 --topic first

bin/kafka-topics.sh --list --zookeeper bd001:2181

bin/kafka-console-producer.sh --broker-list bd001:9092 --topic first

bin/kafka-console-consumer.sh --zookeeper bd001:2181 --topic first

bin/kafka-console-consumer.sh --bootstrap-server bd001:9092 --topic first --from-beginning

bin/kafka-topics.sh --list --zookeeper bd001:2181

bin/kafka-topics.sh --zookeeper bd001:2181 --describe --topic first

你可能感兴趣的:(kafka)