buger / goreplay

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
https://goreplay.org
Other
18.46k stars 9 forks source link

Reading from Kafka didn't work #1176

Open manhcv-st opened 1 year ago

manhcv-st commented 1 year ago

hi everyone,

I install gor v1.3.0, and using: gor --input-kafka-host '192.168.1.15:9092' --input-kafka-topic 'kafka-log' --output-stdout to store data to Apache Kafka.

I check the message of the topic in Kafka it exists and the setting advertised.listeners in server.properties at Kafka server.

I use: gor --input-kafka-host '192.168.1.15:9092' --input-kafka-topic 'kafka-log' --output-stdout to read data, but it doesn't work.

How to debug or fix it?

Thank everyone for reading.

manhcv-st commented 1 year ago

I was able to read data from Kafka by running the write command to Kafka first and then running the read data command at the same time. Before that, I was hoping that the read data command would read the previous data even without running the write command