Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Read a specific number of messages using kafka

$
0
0
Hi,

My requirement is to read a specific number of messages from kafka topic
which contains data in json format and after reading number of messges, i
need to write that in a file and then stop. How can I count number of
messages read by my consumer code(either simpleconsumer or high level) ?

Please help.

Viewing all articles
Browse latest Browse all 5648

Trending Articles