- 链接地址:https://blog.csdn.net/reddy_Hu/article/details/107922710
- 链接标题:spark-Action算子_priority keeps the largest elements, so let's reve-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:1421
文章浏览阅读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
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除