Sure, here's an example command to read messages from a Kafka topic using the console consumer tool:

bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning

This command will start the console consumer tool and read messages from the "test" topic on a Kafka broker running on the local machine at port 9092. The --from-beginning flag will ensure that all existing messages in the topic are read, not just new ones.

show me an example using Kafka console consumer tool to read messages

原文地址: https://www.cveoy.top/t/topic/doNA 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录