August 2017
Beginner to intermediate
284 pages
6h 51m
English
This repartitioning operation partitions the tuples in a uniform, random way across multiple tasks. This repartitioning operation is generally used when we want to distribute the processing load uniformly across the tasks. The following diagram shows how the input tuples are repartitioned using the shuffle operation:

Here is a piece of code that shows how we can use the shuffle operation:
mystream.shuffle().each(new Fields("a","b"), new myFilter()).parallelismHint(2)
Read now
Unlock full access