Broadcasting control messages to a sink

2020-10-14 Thread Jaffe, Julian
Hey all, I’m building a Flink app that pulls in messages from a Kafka topic and writes them out to disk using a custom bucketed sink. Each message needs to be parsed using a schema that is also needed when writing in the sink. This schema is read from a remote file on a distributed file system

Re: Broadcasting control messages to a sink

2020-10-14 Thread Piotr Nowojski
Hi Julian, Have you seen Broadcast State [1]? I have never used it personally, but it sounds like something you want. Maybe your job should look like: 1. read raw messages from Kafka, without using the schema 2. read schema changes and broadcast them to 3. and 5. 3. deserialize kafka records in B

Re: Broadcasting control messages to a sink

2020-10-14 Thread Jaffe, Julian
meditate on the docs further 🙂 Julian From: Piotr Nowojski Date: Wednesday, October 14, 2020 at 6:35 AM To: "Jaffe, Julian" Cc: "user@flink.apache.org" Subject: Re: Broadcasting control messages to a sink Hi Julian, Have you seen Broadcast State [1]? I have never used i

Re: Broadcasting control messages to a sink

2020-10-14 Thread Piotr Nowojski
t; > > Julian > > > > *From: *Piotr Nowojski > *Date: *Wednesday, October 14, 2020 at 6:35 AM > *To: *"Jaffe, Julian" > *Cc: *"user@flink.apache.org" > *Subject: *Re: Broadcasting control messages to a sink > > > > Hi Julian, > > &

Re: Broadcasting control messages to a sink

2020-10-15 Thread aj
access the broadcast state within the sink, but perhaps I > just haven’t thought about it the right way. I’ll meditate on the docs > further 🙂 > > > > Julian > > > > *From: *Piotr Nowojski > *Date: *Wednesday, October 14, 2020 at 6:35 AM > *To: *"Jaffe, Juli

Re: Broadcasting control messages to a sink

2020-10-15 Thread Jaffe, Julian
: Thursday, October 15, 2020 at 4:12 AM To: "Jaffe, Julian" Cc: Piotr Nowojski , user Subject: Re: Broadcasting control messages to a sink Hi Jaffe, I am also working on something similar type of a problem. I am receiving a set of events in Avro format on different topics. I want to con

Re: Broadcasting control messages to a sink

2020-10-16 Thread Jaffe, Julian
Jaffe, Julian" Cc: "user@flink.apache.org" Subject: Re: Broadcasting control messages to a sink Hi Julian, I think the problem is that BroadcastProcessFunction and SinkFunction will be executed by separate operators, so they won't be able to share state. If you can not spl

Re: Broadcasting control messages to a sink

2020-10-17 Thread Piotr Nowojski
--- > > > > I hope this is helpful to someone. > > > > Julian > > > > *From: *Piotr Nowojski > *Date: *Wednesday, October 14, 2020 at 11:22 PM > *To: *"Jaffe, Julian" > *Cc: *"user@flink.apache.org" > *Subjec

Re: Broadcasting control messages to a sink

2020-12-04 Thread aj
Union -- >> >> | >> >> ___ >> >> | Sink | >> >> --- >> >> >> &g

Re: Broadcasting control messages to a sink

2020-12-04 Thread Jaffe, Julian
fe, Julian" , "user@flink.apache.org" Subject: Re: Broadcasting control messages to a sink Hi Jafee, Can u please help me out with the sample code how you have written the custom sink and how you using this broadcast pattern to update schema at run time. It will help me. On Sat, Oct