kafkacat receive message code example
Example 1: kafkacat receive message
kafkacat -b localhost:9092 -t new_topic -C
Example 2: kafkacat send message
kafkacat -b localhost:9092 -t new_topic -P test.txt
kafkacat -b localhost:9092 -t new_topic -C
kafkacat -b localhost:9092 -t new_topic -P test.txt