RE: committing particular offset with high level consumer?

2016-01-08 Thread Joris Peeters
To: users@kafka.apache.org Subject: Re: committing particular offset with high level consumer? Joris, The high level consumer now has this API: def commitOffsets(offsetsToCommit: immutable.Map[TopicAndPartition, OffsetAndMetadata], retryOnFailure: Boolean) I believe that was added in the 0.9 versions

Retrieving last message offset in high level consumer

2015-10-01 Thread eugene miretsky
Hi, We would like to log the offset of a Kafka message if we fail to process it (so we can try to re-process it later). Is it possible to get the offset using the high level consumer? I took a quick look at the code, and: - It seems like the offset it private in the current Scala consumer

Re: Retrieving last message offset in high level consumer

2015-10-01 Thread Karthikeyan Annamalai
etsky" <eugene.miret...@gmail.com> wrote: > Hi, > > We would like to log the offset of a Kafka message if we fail to process it > (so we can try to re-process it later). Is it possible to get the offset > using the high level consumer? > > I took a quick look at the code, a

Re: Offset in high level consumer

2013-05-23 Thread arathi maddula
Hi Neha, Thanks for the quick reply. Could you tell me if there is some way of determining the offset for a consumer from a high level Java consumer class apart from ConsumerOffsetChecker tool? This tool can be run only from the command line. Is it possible to use this in a Java class? I write

Re: Offset in high level consumer

2013-05-23 Thread Neha Narkhede
The other option is jmx bean that exposes the lag. Also Kafka provides at least once guarantees so even if your consumer lags occasionally, you will eventually receive all mesaages. You need to provision enough consumers so that they don't fall behind. Thanks, Neha On May 23, 2013 5:30 AM, arathi

Re: Offset in high level consumer

2013-05-22 Thread Neha Narkhede
You can run the ConsumerOffsetChecker tool that ships with Kafka. Thanks, Neha On Wed, May 22, 2013 at 2:02 PM, arathi maddula arathimadd...@gmail.comwrote: Hi, Could you tell me how to find the offset in a high level Java consumer ? Thanks Arathi