Windowing is going on infinite loop or something,i'm printing the data stream after processing but looks like its not hitting that point at all.
Below is my pseudo code.
Datastream env = StreamExecutionEnvironment.getExecutionEnvironment()
env.setStreamTimeCharacteristic(TimeCharacteristic.EventTime)
Datastream stream = env.addSource() .map(mapping to java object)
.filter(filter for specific type of events)
.assignTimestampsAndWatermarks(
new BoundedOutOfOrdernessTimestampExtractor(Time.seconds(2)){})
Datastream processedStream = stream .keyBy(...)
.window(TumblingEventTimeWindows.of(Time.seconds(10))) .reduce()
processedStream.print()
I added the log to print in reduce function. Logs are getting printed from reduce function. but the stream is not getting printed.
And the streaming source data is history data i.e.. more than 2 months old data. in case of history data streaming anything else needs to be set specifically?
Any inputs would be of great help..
facing similar issueissue similar to what? - greybeardBelow is my pseudo code in java- so is it java or pseudo-code? - Alex Yu