Sum values of PairRDD

Viewed 10970

I have an RDD of type:

dataset :org.apache.spark.rdd.RDD[(String, Double)] = MapPartitionRDD[26]

Which is equivalent to (Pedro, 0.0833), (Hello, 0.001828) ...

I'd like to sum all the value , 0.0833+0.001828.. but I can't find a proper solution.

2 Answers
Related