Thank you Patrick and Matei,
if I want to merge them in another way, say RDD1 and RDD2 both contains float numbers, they are also with the same number of element,
if I want add RDD1 and RDD2 as
1stInRDD1 + 1stInRDD2 = 1stInNewRDD
2ndInRDD1 + 2ndInRDD2 = 2ndInNewRDD
3rdInRDD1 + 3rdInRDD2 = 3rdInNewRDD
…
What shall I do?
I can cast a RDD to array and achieve this, but if the RDD is very large, it's obviously inefficiency, any other smarter way?
Best,
--
Nan Zhu
School of Computer Science,
McGill University