摘要:
Spark 的两个共享变量:累加器(accumulator)与广播变量(broadcast variable)。 累加器用来对信息进行聚合,而广播变量用来高效分发较大的对象。 在Scala 中累加空行: scala> val testrdd=sc.textFile("hdfs://localhost 阅读全文
posted @ 2018-06-26 16:14 打杂滴 阅读(165) 评论(0) 推荐(0)
posted @ 2018-06-26 16:14 打杂滴 阅读(165) 评论(0) 推荐(0)
posted @ 2018-06-21 10:53 打杂滴 阅读(357) 评论(0) 推荐(0)
posted @ 2018-06-20 15:52 打杂滴 阅读(218) 评论(0) 推荐(0)
posted @ 2018-06-20 14:29 打杂滴 阅读(417) 评论(0) 推荐(0)
posted @ 2018-06-15 15:33 打杂滴 阅读(494) 评论(0) 推荐(0)
posted @ 2018-06-15 10:29 打杂滴 阅读(828) 评论(0) 推荐(0)
posted @ 2018-06-15 10:28 打杂滴 阅读(234) 评论(0) 推荐(0)
posted @ 2018-06-15 10:28 打杂滴 阅读(1582) 评论(0) 推荐(0)
posted @ 2018-06-12 16:31 打杂滴 阅读(294) 评论(0) 推荐(0)