Hi,I’m afraid that’s not possible out-of-box with the current APIs. I actually don’t know why the user-facing Partitioner only allows returning one target because the internal StreamPartitioner (which extends ChannelSelector) allows returning multiple target partitions.You can hack around the API by manually creating your own StreamPartitioner and applying it to the DataStream as DataStream.partitionCustom() and DataStream.setConnectionType() (the first calls the latter) do.Best,AljoschaOn 14. Jun 2017, at 09:09, Xingcan Cui <[hidden email]> wrote:Hi all,I want to duplicate records to multiple downstream tasks (not all of them thus theBroadcasting should not work) in stream environment.However, it seems that the current custom partitioner can return only one partition index.Why this restriction exists or do I miss something?Thanks,Xingcan
Free forum by Nabble | Edit this page |