Vamsi, There is another thread going on right now about this exact topic:
"Is there a way to know when I've reached the end of a partition (consumed all messages) when using the high-level consumer?" http://search-hadoop.com/m/uyzND1Eb3e42NMCWl -James On May 10, 2015, at 11:48 PM, Achanta Vamsi Subhash <[email protected]> wrote: > Hi, > > What is the best way for finding out the log end offset for a topic? > Currently I am using the SimpleConsumer getLastOffset logic mentioned in: > https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+SimpleConsumer+Example > > But we are running into ClosedChannelException for some of the topics. We > use Kafka for offset storage and version 0.8.2.1. > > What is the ideal way to compute the topic log end offset? > > -- > Regards > Vamsi Subhash
