Casey, You can't get offsets using zk-based consumer now. We are still trying to figure about how to support that in the future.
Thanks, Jun On Thu, Mar 15, 2012 at 7:57 AM, Sybrandy, Casey < casey.sybra...@six3systems.com> wrote: > Hello, > > Just out of curiosity, how would you get the offsets when using a zk-based > consumer? I don't see anything that seems to let you do this easily. > > Casey > > ________________________________________ > From: Joel Koshy [jjkosh...@gmail.com] > Sent: Monday, March 12, 2012 5:51 PM > To: kafka-users@incubator.apache.org > Subject: Re: Replay > > With simple consumer, you can start from any valid offset that you keep > track off. > > With the high level (zk-based) consumer: you will need to stop all > consumers, and then update the offsets in zookeeper (see the > ImportZkOffsets tool in the tools package) with the offsets you want to > replay from before restarting your consumer. > > Thanks, > > Joel > > On Mon, Mar 12, 2012 at 12:09 PM, Jain, Kokil <ja...@bit-sys.com> wrote: > > > Hi, > > > > Sorry, new to Kafka. Is it possible for a consumer to replay messages > from > > an "offset" that may have been committed before? > > > > Thanks for the help, > > Kokil Jain > > > > >