I am now wishing to test the behavior of repartition() and coalesce() on my own, especially in a not so common situation where numsPartion keeps unchanged, I wish to see will a call of repartition with same partition number will still do a full shuffle on all data. Then I realized that I lack the measure to check the exact content of each partition. I am just using a paralyzed-list as my sample RDD. Is there any way I can inspect the contents of each partition so that I can verify my doubts?
Oh maybe there exists other more recent API that can suit this aim?
Thanks in advance.