If you have a RDD[Int] as shown below:
val myRdd = sc.parallelize(Seq(1,2,3,4,5,6))
you could do the following to add the elements of the List:
myRdd.reduce(_+_)
res1: Int = 21
Or you could do the following as well:
myRdd.fold(0)(_+_)
res6: Int = 21
Hope it helps.