Kafka, mail # user - Re: Consume from X messages ago - 2013-03-19, 15:49
 Search Hadoop and all its subprojects:

Switch to Threaded View
Copy link to this message
-
Re: Consume from X messages ago
This API is exposed through the SimpleConsumer scala class. See
https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/consumer/SimpleConsumer.scala#L60

You will need to set earliestOrLatest to -1 for the latest offset.

There is also a command line tool
https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/tools/GetOffsetShell.scala

-David

On 3/19/13 11:25 AM, James Englert wrote:
 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB