Answer Posted / Mohit Kumar Sharma
Manual partitioning of RDDs can be achieved by using the glom() and mapPartitions() transformation functions. For example: rdd.glom().mapPartitions(iter => iter.toList.splitAll(partitionSize)).flatMap(_.iterator).collect()
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers