从源码看:
reduceBykey与groupbykey:
都调用函数combineByKeyWithClassTag[V]((v: V) => v, func, func, partitioner)reduceBykey的map端进行聚合combine操作mapSideCombine = true
groupbykey的mapSideCombine = false