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