Need help in the below steps of how to consume the messages from Kafka topic and store them in a directory /tmp/kakfa-messages
Problem statement :
Create a kafka consumer to consume messages from topic 'Multibrokerapplication' and store them in '/tmp/kafka-messages'
Step 1: I'm able to consume the messages published to Topic 'Multibrokerapplication' as given below .
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic Multibrokerapplication —from-beginning
But, how to achieve the 2nd step of storing them in the folder /tmp/kafka-messages via command lines ?
Could you please suggest ?
Thanks