Hi all,
I connected my data stream with my control stream and create event time tumbling window, everything works fine. But when I add .broadcast() function to the control stream, the window function doesn't work anymore. I'm running that on my local, the code is here: public static void main(String[] args) throws Exception { |
btw, the reduce function works well, I've printed out the data, and they are all correct. So are the timestamps and watermarks. And if I remove ".broadcast()", the data is successfully sinked.
Any help? |
Hi Sam,
could you explain the behavior a bit more? How does the window function behave? Is it not triggered or what is the content? What is the result if you don't use a window function? Timo Am 08/03/17 um 02:59 schrieb Sam Huang: > btw, the reduce function works well, I've printed out the data, and they are > all correct. So are the timestamps and watermarks. And if I remove > ".broadcast()", the data is successfully sinked. > > Any help? > > > > -- > View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/window-function-not-working-when-control-stream-broadcast-tp12093p12094.html > Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com. |
Hi Timo, If I comment the ".timeWindow", and print results after the reduce function, it works Code for window function is here: private static class WindowFunImpl implements WindowFunction<KVTuple6,Point,Tuple,TimeWindow> { On Wed, Mar 8, 2017 at 1:10 AM, Timo Walther <[hidden email]> wrote: Hi Sam, |
Hi Sam,
could you please also send the code for the DataFilterFunImpl and your timestamps/watermark assigner. That could help in figuring out the problem.
Best,
Aljoscha
On Wed, Mar 8, 2017, at 19:56, Sam Huang wrote:
|
Hi Aljoscha, Here's the code: private static class DataFilterFunImpl extends RichCoFlatMapFunction<KVTuple6, String, KVTuple6> { FYI, if I setParallelism of both the control stream and data stream, the window function works. Is it necessary to do so for broadcast() function? On Thu, Mar 9, 2017 at 2:26 AM, Aljoscha Krettek <[hidden email]> wrote:
|
Hi Sam,
could you please also send the code of the timestamp/watermark assigner? This could also affect things.
Best,
Aljoscha
On Thu, Mar 9, 2017, at 19:58, Sam Huang wrote:
|
Free forum by Nabble | Edit this page |