How to view kafka message

前端 未结 8 1313
既然无缘
既然无缘 2021-02-01 12:10

Is there any way I can view the message content sent to kafka for a given topic? Say some thing like view last 5 messages for this topic, if that it possible.

8条回答
  •  礼貌的吻别
    2021-02-01 12:40

    If you doing from windows folder, I mean if you are using the kafka from windows machine

    kafka-console-consumer.bat --bootstrap-server localhost:9092 -- test --from-beginning
    

提交回复
热议问题