介绍 val fileRDD: RDD[String] = sc.textFile("input/1.txt") println(fileRDD.toDebugString) println(" ") val wordRDD: RDD[String] = fileRDD.flatMap(_.spli Read More
posted @ 2023-04-20 13:55
MrSponge
Views(82)
Comments(0)
Diggs(0)
Spark的算子分为两大类:transform(转换算子)和action(行动算子) transform算子:map、mapPartitions、mapPartitionsWithIndex、flatMap、glom、groupBy、filter、sample、distinct、coalesce、r Read More
posted @ 2023-04-20 13:45
MrSponge
Views(452)
Comments(2)
Diggs(0)

浙公网安备 33010602011771号