摘要: 运行案例程序 计算圆周率——Local Local 模式下,解压安装 spark 后,运行 example 包下的案例程序: bin/spark-submit --class org.apache.spark.examples.SparkPi --master local[2] ./examples 阅读全文
posted @ 2024-07-15 00:16 Stitches 阅读(30) 评论(0) 推荐(0)
摘要: Transformation 转换算子 RDD 整体上分为 Value、双Value、Key-Value 三种类型。 Value 类型 Map算子 函数签名 def map[U:ClassTag](f:T=>U):RDD[U],它通过接受一个参数,并且遍历该 RDD 中每一个数据项,依次应用函数 f 阅读全文
posted @ 2024-07-15 00:16 Stitches 阅读(29) 评论(0) 推荐(0)