some confuse for data exchange of parallel operator

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

some confuse for data exchange of parallel operator

tangkailin

Hello,

       I don’t know how parallel operator exchange data in flink. for example, I define a map in a operator with n (n > 1) parallelism for counting. Can this map record all data? Or this map only record data from one parallelism of upstream operator?

 

Thanks,

Kylin

Reply | Threaded
Open this post in threaded view
|

Re: some confuse for data exchange of parallel operator

Biao Liu
Hi Kylin,

> Can this map record all data? Or this map only record data from one parallelism of upstream operator?
Neither of your guess is correct. It depends on the partitioner between the map operator and upstream operator. You could find more in this document [1].


On Mon, Aug 5, 2019 at 4:59 PM tangkailin <[hidden email]> wrote:

Hello,

       I don’t know how parallel operator exchange data in flink. for example, I define a map in a operator with n (n > 1) parallelism for counting. Can this map record all data? Or this map only record data from one parallelism of upstream operator?

 

Thanks,

Kylin