Re: Generate watermarks per key in a KeyedStream

2017-11-09 Thread Derek VerLee
We are contending with the same issue, as it happens.  We have dozens, and potentially down the line, may need to deal with thousands of different "time systems" as you put it, and may not be know at compile time or job start time.  In a practical sense, how could

Re: Generate watermarks per key in a KeyedStream

2017-11-09 Thread Shailesh Jain
Thanks for your reply, Xingcan. On Wed, Nov 8, 2017 at 10:42 PM, Xingcan Cui wrote: > Hi Shailesh, > > actually, the watermarks are generated per partition, but all of them will > be forcibly aligned to the minimum one during processing. That is decided > by the semantics of watermark and KeyedS

Re: Generate watermarks per key in a KeyedStream

2017-11-08 Thread Xingcan Cui
Hi Shailesh, actually, the watermarks are generated per partition, but all of them will be forcibly aligned to the minimum one during processing. That is decided by the semantics of watermark and KeyedStream, i.e., the watermarks belong to a whole stream and a stream is made up of different partit

Generate watermarks per key in a KeyedStream

2017-11-08 Thread Shailesh Jain
Hi, I'm working on implementing a use case wherein different physical devices are sending events, and due to network/power issues, there can be a delay in receiving events at Flink source. One of the operators within the flink job is the Pattern operator, and there are certain patterns which are t

Re: Watermarks per key

2017-02-21 Thread Aljoscha Krettek
s > keys. > > Thanks! > > > > -- > View this message in context: > http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Watermarks-per-key-tp11628p11761.html > Sent from the Apache Flink User Mailing List archive. mailing list archive > at Nabble.com. >

Re: Watermarks per key

2017-02-20 Thread jganoff
timestamps. So is that what's technically preventing assigning timestamps per key from working? I'm curious to hear Aljoscha's thoughts on watermark management across keys. Thanks! -- View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabb

Re: Watermarks per key

2017-02-15 Thread Fabian Hueske
Hi Jordan, it is not possible to generate watermarks per key. This feature has been requested a couple of times but I think there are no plans to implement that. As far as I understand, the management of watermarks would be quite expensive (maintaining several watermarks, purging watermarks of

Watermarks per key

2017-02-14 Thread Jordan Ganoff
Hi, I’m designing a streaming job whose elements need to be windowed by event time across a large set of keys. All elements are read from the same source. Event time progresses independently across keys. Is it possible to assign timestamps, and thus generate independent watermarks, per keyed st

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-23 Thread Aljoscha Krettek
gt; .timeWindow(Time.hours(1)) > .allowedLateness(Time.hours(2)) > .apply(new ReadingAggregate(), new AggregateReadings(), new > AggregateReadings()); > > > > Feedback is very welcome. > > best, Stephan > > > > On 11 Nov 2016, at 00:29

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-23 Thread kaelumania
.apply(new ReadingAggregate(), new AggregateReadings(), new >> AggregateReadings()); >> >> >> Feedback is very welcome. >> >> best, Stephan >> >> >> >> >>> On 11 Nov 2016, at 00:29, Fabian Hueske-2 [via Apache Flin

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-23 Thread Aljoscha Krettek
> best, Stephan > > > > On 11 Nov 2016, at 00:29, Fabian Hueske-2 [via Apache Flink User Mailing > List archive.] <[hidden email] > <http://user/SendEmail.jtp?type=node&node=10179&i=0>> wrote: > > Hi Stephan, > > I just wrote an answer to your SO q

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-21 Thread Stephan Epping
>> <http://user/SendEmail.jtp?type=node&node=10179&i=0>> wrote: >> > >> Hi Stephan, >> >> I just wrote an answer to your SO question. >> >> Best, Fabian > >> >> 2016-11-10 11:01 GMT+01:00 Stephan Epping <>

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-21 Thread Aljoscha Krettek
e=10179&i=0>> wrote: > > Hi Stephan, > > I just wrote an answer to your SO question. > > Best, Fabian > > > 2016-11-10 11:01 GMT+01:00 Stephan Epping < href="x-msg://3/user/SendEmail.jtp?type=node&node=10033&i=0" > target="_top" re

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-17 Thread kaelumania
e.] wrote: > > Hi Stephan, > > I just wrote an answer to your SO question. > > Best, Fabian > > 2016-11-10 11:01 GMT+01:00 Stephan Epping <[hidden email] > >: > Hello, > > I found this question in the Nabble archive > (http://apache-flink-user-mailin

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-15 Thread Stephan Epping
hots? Will they work with the mentioned design? >> >> kind regards, >> Stephan > >>> On 11 Nov 2016, at 00:39, Fabian Hueske <>> href="x-msg://10/user/SendEmail.jtp?type=node&node=10094&i=1 >>> " >>> target="_top

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-14 Thread Aljoscha Krettek
> > On 11 Nov 2016, at 00:39, Fabian Hueske < href="x-msg://10/user/SendEmail.jtp?type=node&node=10094&i=1" > target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote: > > Hi Stephan, > > I

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-14 Thread kaelumania
; Stephan > > >> On 11 Nov 2016, at 00:39, Fabian Hueske <[hidden email] >> > wrote: >> >> Hi Stephan, >> >> I just wrote an answer to your SO question. >> >> Best, Fabian >> >> 2016-11-10 11:01 GMT+01:00 Stephan Epping

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-14 Thread Fabian Hueske
t;> >> I found this question in the Nabble archive ( >> http://apache-flink-user-mailing-list-archive.2336050.n4. >> nabble.com/Maintaining-watermarks-per-key-instead-of-per- >> operator-instance-tp7288.html) but was unable/dont know how to reply. >> >> Here is my que

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-13 Thread Stephan Epping
an > > 2016-11-10 11:01 GMT+01:00 Stephan Epping <mailto:stephan.epp...@zweitag.de>>: > Hello, > > I found this question in the Nabble archive > (http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Maintaining-watermarks-per-key-instead-of-per-operator

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-10 Thread Fabian Hueske
Hi Stephan, I just wrote an answer to your SO question. Best, Fabian 2016-11-10 11:01 GMT+01:00 Stephan Epping : > Hello, > > I found this question in the Nabble archive (http://apache-flink-user- > mailing-list-archive.2336050.n4.nabble.com/Maintaining- > watermarks-per-key

Re: Maintaining watermarks per key, instead of per operator instance

2016-11-10 Thread Stephan Epping
Hello, I found this question in the Nabble archive (http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Maintaining-watermarks-per-key-instead-of-per-operator-instance-tp7288.html <http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Maintaining-watermarks-

Re: Maintaining watermarks per key, instead of per operator instance

2016-06-04 Thread Aljoscha Krettek
Hi, I think you first have to convert back to a DataStream using .select() or .flatSelect(). But Till should know more about this, maybe he can help. Cheers, Aljoscha On Thu, 2 Jun 2016 at 19:19 Kanstantsin Kamkou wrote: > Hi Aljoscha! Is it possible somehow to use the RichXFunction in CEP? > T

Re: Maintaining watermarks per key, instead of per operator instance

2016-06-02 Thread Kanstantsin Kamkou
Hi Aljoscha! Is it possible somehow to use the RichXFunction in CEP? The task is pretty similar, but I have to ignore once the next triggered event for the same key. On Wed, Jun 1, 2016 at 2:54 PM, Aljoscha Krettek wrote: > Hi, > yeah, in that case per-key watermarks would be useful for you. I w

Re: Maintaining watermarks per key, instead of per operator instance

2016-06-02 Thread leon_mclare
Hi again Aljoscha, understood. Thanks for the link. I really like the straightforward approach concerning storing state. It makes things very easy. The improvements are very interesting, particularly the composite triggers. That would significantly improve flexibility. Kind regards Leon 1. Ju

Re: Maintaining watermarks per key, instead of per operator instance

2016-06-01 Thread Aljoscha Krettek
Hi, yeah, in that case per-key watermarks would be useful for you. I won't be possible to add such a feature, though, due to the (possibly) dynamic nature of the key space and how watermark tracking works. You should be able to implement it with relatively low overhead using a RichFlatMapFunction

Re: Maintaining watermarks per key, instead of per operator instance

2016-05-31 Thread leon_mclare
Hi Aljoscha, thanks for the speedy reply. I am processing measurements delivered by smart meters. I use windows to gather measurements and calculate values such as average consumption. The key is simply the meter ID. The challenge is that meters may undergo network partitioning, under which t

Re: Maintaining watermarks per key, instead of per operator instance

2016-05-31 Thread Aljoscha Krettek
Hi, I'm afraid this is impossible with the current design of Flink. Might I ask what you want to achieve with this? Maybe we can come up with a solution. -Aljoscha On Tue, 31 May 2016 at 13:24 wrote: > My use case primarily concerns applying transformations per key, with the > keys remaining fi

Maintaining watermarks per key, instead of per operator instance

2016-05-31 Thread leon_mclare
My use case primarily concerns applying transformations per key, with the keys remaining fixed throughout the topology. I am using event time for my windows. The problem i am currently facing is that watermarks in windows propagate per operator instance, meaning the operator event time increase