diff --git a/contrib/hadoop-consumer/src/main/java/kafka/etl/KafkaETLContext.java b/contrib/hadoop-consumer/src/main/java/kafka/etl/KafkaETLContext.java index bca175789a4..949816924ec 100644 --- a/contrib/hadoop-consumer/src/main/java/kafka/etl/KafkaETLContext.java +++ b/contrib/hadoop-consumer/src/main/java/kafka/etl/KafkaETLContext.java @@ -205,7 +205,7 @@ public class KafkaETLContext { key.set(_index, _offset, messageAndOffset.message().checksum()); - _offset = messageAndOffset.offset(); //increase offset + _offset = messageAndOffset.nextOffset(); //increase offset _count ++; //increase count return true;