Spark: split one pairRDD into two : I have pairRDD like
(1, JOHN SMITH)
(2, JACK SMITH)
And I would like to split them to:
(1, JOHN)
(1, SMITH)
(2, JACK)
(2, SMITH)
I tried flatMapValues, but not quite right in the details