spark共享变量

boradcast例子代码:

scala版本

 spark共享变量之Accumulator

例子代码:

scala版本

 

原文地址:https://www.cnblogs.com/yaohaitao/p/5650573.html