Re: Queries regarding FlinkCEP

2017-06-20 Thread Dawid Wysakowicz
For example if there is no events in one of the partitions the partition will always generate Watermark(Long.MIN_VALUE) which will result in Watermark not being advanced. There is open JIRA to improve such situations: FLINK-5479 . Z pozdrowieniami!

Re: Queries regarding FlinkCEP

2017-06-20 Thread Biplob Biswas
Hi dawid, Yes I am reading from multiple topics and yes a few topics have multiple partitions, not all of them. But I didn't understand the concept of stalled partition. -- View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Queries-regarding-Fli

Re: Queries regarding FlinkCEP

2017-06-20 Thread Dawid Wysakowicz
Hi Biplop, Your recent post on reading from different topics made me realise it may be a problem with "stalled" partitions. Did your topic have more than one partition? If it did, it may be the problem that Watermark is generated independently per partition and then the smallest one is taken as a

Re: Queries regarding FlinkCEP

2017-06-08 Thread Biplob Biswas
Hi, Can anyone check, whether they can reproduce this issue on their end? There's no log yet as t what is happening. Any idea to debug this issue is well appreciated. Regards, Biplob -- View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Queries-r

Re: Queries regarding FlinkCEP

2017-06-07 Thread Biplob Biswas
Hi Dawid, Yes, now I understood what you meant. Although I added exactly the input you asked me to and I still get no alerts. I also observed that I am not getting alerts even with normal ordering of timestamp and with ascedingTimestampExtractor. I am adding an image where I entered the data fr

Re: Queries regarding FlinkCEP

2017-06-07 Thread Dawid Wysakowicz
Sorry I have not responded earlier. Did you try input like this?: > 1,a,1,0 > 5,a,3,2 > 6,a,2,1 > 8,b,5,1 > 12,b,4,6 > 12,b,7,6 In response to your PS, in this example no events are late(in regards to maxOutOfOrderness). If after the last event there was an event like (12,b, , 6) it would

Re: Queries regarding FlinkCEP

2017-06-06 Thread Biplob Biswas
Hi Dawid, What you wrote is exactly correct, it wouldn't generate a new waatermark (and subsequently throw events) unless maxOutOfOrderness time is elapsed. Thus, I was expecting for alerts to be raised as the stream was out of order but not out of maxOutOfOrderness. Nevertheless I tried your ex

Re: Queries regarding FlinkCEP

2017-06-06 Thread Dawid Wysakowicz
Hi Biplop, CEP library internally must ensure order of the incoming events. It sorts events upon Watermark arrival. At that time it sorts events with timestamp < Watermark. With BoundedOutOfOrdernessTimestampExtractor a Watermark with time* t* is generated if there arrives event with timestamp *t

Re: Queries regarding FlinkCEP

2017-06-06 Thread Biplob Biswas
Sorry to bombard with so many messages , but one last thing is the example would produce alert if the line specifying Event Time is commented out. More specifically, this one: env.setStreamTimeCharacteristic(TimeCharacteristic.EventTime); Only with event time, there is no alert. Thanks, Biplob

Re: Queries regarding FlinkCEP

2017-06-06 Thread Biplob Biswas
Also, my test environment was Flink 1.4-Snapshot with Kafka 0.10.0 on HDP 2.5. And I sent my test messages via the console producer. Thanks, Biplob -- View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Queries-regarding-FlinkCEP-tp13454p13512.htm

Re: Queries regarding FlinkCEP

2017-06-06 Thread Biplob Biswas
Thanks a lot, Till and Dawid for such detailed reply. I tried to check and wait what both of you suggested and I still have no events. Thus as pointed out by till, I created a self-contained example to reproduce the issue and the behaviour is the same as was in my original case. Please find the s

Re: Queries regarding FlinkCEP

2017-06-04 Thread Dawid Wysakowicz
I think Till answered all your question but just to rephrase a bit. 1. The within and TimeCharacteristic are working on different levels. The TimeCharacteristics tells how events are assigned a timestamp. The within operator specifies the maximal time between first and last event of a matched sequ

Re: Queries regarding FlinkCEP

2017-06-02 Thread Till Rohrmann
Hi Biplob, 1. The CEPPatternOperator can use either processing time or event time for its internal processing logic. It only depends on what TimeCharacteristic you have set for your program. Consequently, with event time, your example should be detected as an alert. 2. If you don't provide a keye