Hi,
I have such task that I want to count window on a stream and execute them batch by batch. Execute a count window may take some time, so I want it to be executed in parallel. I read this part in the documentation when I found it automatically reduced parallelization to 1 * Note: This operation can be inherently non-parallel since all elements have to pass through
Confidentiality Notice: This e-mail transmission may contain confidential or legally privileged information that is intended only for the individual or entity named in the e-mail address. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message. |
Hi, if you manually force a parallelism different from 1 after a *windowAll() then you will get parallel execution of your window. For example, if you do this: input.countWindowAll(100).setParallelism(5) then you will get five parallel instances of the window operator that each wait for 100 elements before they fire the window. There is no global coordination between the parallel instances that would allow it to fire once 100 elements are received across the parallel instances. Cheers, Aljoscha On Wed, 3 Aug 2016 at 05:10 Andrew Ge Wu <[hidden email]> wrote:
|
Hi Aljoscha Thanks for the explanation. Thanks Andrew From: Aljoscha Krettek Hi, if you manually force a parallelism different from 1 after a *windowAll() then you will get parallel execution of your window. For example, if you do this: input.countWindowAll(100).setParallelism(5) then you will get five parallel instances of the window operator that each wait for 100 elements before they fire the window. There is no global coordination between the parallel instances that would allow it to fire once 100 elements are received across the parallel instances. Cheers, Aljoscha On Wed, 3 Aug 2016 at 05:10 Andrew Ge Wu <[hidden email]> wrote:
Confidentiality Notice: This e-mail transmission may contain confidential or legally privileged information that is intended only for the individual or entity named in the e-mail address. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message. |
Hi, "rebalance" simply specifies the strategy to use when sending elements downstream to the next operator(s). There is no interaction or competition between the parallel window operator instances. Each will do windowing locally based on the elements that it receives from upstream. Cheers, Aljoscha On Wed, 3 Aug 2016 at 08:26 <[hidden email]> wrote:
|
Thanks for the quick response, everything is clear!
cheers! Andrew
Confidentiality Notice: This e-mail transmission may contain confidential or legally privileged information that is intended only for the individual or entity named in the e-mail address. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message. |
Free forum by Nabble | Edit this page |