kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jun Rao <jun...@gmail.com>
Subject Re: How to get last message
Date Thu, 29 May 2014 14:54:57 GMT
There is no direct way. You can try getting the last offset (the offset of
the next to be appended message) using the getOffsetBefore api and then
using that offset - 1 to fetch.



On Wed, May 28, 2014 at 5:24 PM, hsy541@gmail.com <hsy541@gmail.com> wrote:

> Is there a way to get the last message of a partition for a given topic?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message