kafka-console-producer.sh --topic test-topic-01 --broker-list 172.21.0.5:9092
--broker-list指定borkerbootstrap
kafka-console-consumer.sh --topic test-topic-01 --bootstrap-server 172.21.0.5:9092
--from-beginning 讀取歷史未消費的數據(consumer重啓後還能夠繼續消費指定tiopic中沒有消費的數據)ide
kafka-console-producer.sh --topic test-topic-01 --broker-list 172.21.0.5:9092 kafka-console-consumer.sh --topic test-topic-01 --bootstrap-server 172.21.0.5:9092