kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristoffer Sjögren <sto...@gmail.com>
Subject Last offset in all partitions
Date Wed, 06 Jul 2016 15:19:59 GMT

Is there a way to get the last offset written by all partitions of a
topic programmatically using the API?

At the moment I use KafkaConsumer.seekToEnd as seen in this gist[1]
but maybe there is a better, more efficient, way to do it?


[1] https://gist.github.com/krisskross/a49e462bedb89505e372672cd81129ab

View raw message