I get a RDD with 'Scan' action from 'HBase'. Each item in this RDD is like: x1, y1, y2, y3... So the items in this RDD are like(each line is a row result of scan action):
- x1, y1, y2, y3
- x2, y1, y4, y8, y9
- x3, y5
- ......
- xn, y1, y6, y100
I want transform this RDD to another RDD like:
- x1, y1
- x1, y2
- x1, y3
- x2, y1
- x2, y4
- ...
- xn, y1
- xn, y6
- xn, y100
How can I do this transform?