1. 程式人生 > >kafka 檢視topic消費

kafka 檢視topic消費

sudo su

su kafka

加證書前:

cd home/kafka/software/kafka/bin

./kafka-console-consumer.sh --zookeeper localhost:2181 --topic  monitor --from-beginning

加證書後:

cd home/kafka/software/kafka/

./bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --new-consumer --consumer.config config/consumer.properties --topic  monitor