In spark: after a groupBy everything goes to one executor. If a do a repartition(x) after it, does the rdd get distributed in x executors or is just chunked in the x number of partitions getting 1 executor with x rdd blocks?
Example:
rdd = rdd_tmp.groupBy.repartition(32).cache()
rdd.count()
If I'm using 32 executors and I run a groupBy operation, and cached the rdd.
Do i get:
1 executor with 32 rdd blocks
32 executors with 1 rdd each
?