Home | About | Sematext search-lucene.com search-hadoop.com search-devops.com
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
 Search Hadoop and all its subprojects:

Switch to Plain View
Kafka >> mail # user >> OffsetOutOfRangeException and getOffsetsBefore


+
Sining Ma 2013-05-24, 18:29
+
Suyog Rao 2013-05-24, 20:32
+
Sining Ma 2013-05-24, 21:04
Copy link to this message
-
Re: OffsetOutOfRangeException and getOffsetsBefore
If you use the Java API you can do SimpleConsumer.getOffsetsBefore(topic, partition, time, 1) which will return a long offset value

The time parameter can be kafka.api.OffsetRequest.EarliestTime() or kafka.api.OffsetRequest.LatestTime() based on your application need.
On May 24, 2013, at 2:03 PM, Sining Ma <[EMAIL PROTECTED]> wrote:

 
+
Jun Rao 2013-05-25, 05:09
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