I have an RDD (long, vector)
. I want to do sum over all the vectors. How to achieve it in spark 1.6?
For example, input data is like
(1,[0.1,0.2,0.7])
(2,[0.2,0.4,0.4])
It then produces results like [0.3,0.6,1.1]
regardless of the first value in long