Re: how to find start offset of messages stored at kafka broker

2014-03-06 Thread Jun Rao
You can use the getOffsetBefore api. Take a look at https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+SimpleConsumer+Example Thanks, Jun On Thu, Mar 6, 2014 at 3:09 PM, Hema Bhatia wrote: > Hi, > > Is there a way to get the start offset of messages present at current > point in kafka br

how to find start offset of messages stored at kafka broker

2014-03-06 Thread Hema Bhatia
Hi, Is there a way to get the start offset of messages present at current point in kafka broker, given the topic and partition. I am using high-level consumer, and I want to replay messages from a given offset. I am using replication factor 1 and single partition, and I am using high level cons