kafka

 

 

`bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic dblab`
`bin/kafka-topics.sh --list --zookeeper localhost:2181`
kafka生产者:`bin/kafka-console-producer.sh --broker-list localhost:9092 --topic dblab`

kafka消费者:`bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic web_log --from-beginning`

你可能感兴趣的:(kafka)