Spark Scala usage among reduceByKey

[Study notes]

reduceByKey (function)
reduceByKey Value is the same elements as in RDD Key elements of KV to reduce the operating function is performed (as described above), and therefore, the same values of a plurality of elements to reduce Key is a value, and then Key in the original RDD form a new KV right.

Reprinted from the original article: https://blog.csdn.net/qq_44596980/article/details/93311813

Guess you like

Origin www.cnblogs.com/haima1949/p/11262660.html
Recommended