O'Reilly logo
  • maomao thinks this is interesting:

reduceByKey() is not implemented as an action that returns a value to the user program. Instead, it returns a new RDD consisting of each key and the reduced value for that key.

From

Cover of Learning Spark

Note

reduceBykey()直接执行,no lazy