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 <hema.bha...@apollo.edu> wrote: > 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 > consumer api. > > Thanks, > Hema > > ________________________________ > This message is private and confidential. If you have received it in > error, please notify the sender and remove it from your system. > >