O'Reilly logo
  • Kai Zhang thinks this is interesting:

sc.parallelize(data).reduceByKey((x, y) => x + y)

From

Cover of Learning Spark

Note

This probably should be "sc.parallelize(data, SomeNumber).reduceByKey((x, y) => x + y)"