Hi, I'm using Flink 1.2.0 to read from Kafka-0.8.1.1_2.10. I have written a flink streaming job that creates (event) time based window and then computes some stats. However, the window function is never called. I used the debug watermark code and noticed that no watermark is generated. If I read from file, then only one watermark is generated. Here is my code (reading from kafka)- public static void main(String[] args) throws Exception { public static StreamExecutionEnvironment createExecutionEnvironment(String[] args) throws IOException { Any help will be appreciated. Thank you, Sam |
Hi Sam, do you have an idea what the timestamps in your data are, i.e. the tuple.f1 field you're extracting. What you could try is instead of windowing simply print your data and observe the timestamps. Maybe we can learn something from this about why the window doesn't trigger. Best, Aljoscha On Wed, Mar 1, 2017 at 12:13 AM, Sam Huang <[hidden email]> wrote:
|
So sorry I forgot to reply. I've solved the problem, turns out I didn't input data which generates a watermark greater than my first window end time, so no window was triggered.
|
Great you could figure it out! And thanks for letting us know.
On Wed, Mar 8, 2017, at 03:03, Sam Huang wrote: > So sorry I forgot to reply. I've solved the problem, turns out I didn't > input > data which generates a watermark greater than my first window end time, > so > no window was triggered. > > > > -- > View this message in context: > http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Event-time-tumbling-window-doesn-t-fire-Flink-1-2-0-Kafka-0-8-2-10-tp11976p12095.html > Sent from the Apache Flink User Mailing List archive. mailing list > archive at Nabble.com. |
Free forum by Nabble | Edit this page |