2

I'm consuming data using a Kafka Consumer 0.9 and after some initial filtering for valid events and mapping to POJO I am setting AscendingTimestampExtractor.

using Joda Time library I'm returning the milliseconds since epoch as follows: return DateTime.parse(evnt.timestamp).getMillis();

This seems to result in WARN org.apache.flink.streaming.api.functions.timestamps.AscendingTimestampExtractor - Timestamp monotony violated: 1478048406982 < 1478051502295

Of course the ordering is different but what I don't understand is how make sure these are in order? Should I be ordering these based on this timestamp and then performing any keyBy or timeWindow?

I haven't really found much information on this so any help would be appreciated.

AtharvaI
  • 1,160
  • 3
  • 16
  • 27

0 Answers0