spark-Action算子_priority keeps the largest elements, so let's reve-CSDN博客

网站介绍:文章浏览阅读173次。countReturn the number of elements in the RDD.这个算子就是来算一下所有分区有多少条数据,因为底层调用了runJob方法,所以是一个Action方法package com.doit.spark.day05import org.apache.spark.{SparkConf, SparkContext}object Count { def main(args: Array[String]): Unit = { val conf =_priority keeps the largest elements, so let's reverse the ordering