Re: Retrieve most-recent-n messages from kafka topic
There is not index-based access to messages in 0.7 like there is in 0.8.
You have to start from a known good offset and iterate through the messages.
What's your use case? Running a job periodically that reads the latest N
message from the queue? Is it impractical to run from the last known
offset and only keep the last N?
On 7/19/13 3:45 AM, Shane Moriah wrote: