Skip to content
Snippets Groups Projects
Commit 72a17b69 authored by Reynold Xin's avatar Reynold Xin
Browse files

Revert "Merge pull request #310 from jyunfan/master"

This reverts commit 79b20e4d, reversing
changes made to 7375047d.
parent 79b20e4d
No related branches found
No related tags found
No related merge requests found
...@@ -349,7 +349,7 @@ An accumulator is created from an initial value `v` by calling `SparkContext.acc ...@@ -349,7 +349,7 @@ An accumulator is created from an initial value `v` by calling `SparkContext.acc
The interpreter session below shows an accumulator being used to add up the elements of an array: The interpreter session below shows an accumulator being used to add up the elements of an array:
{% highlight scala %} {% highlight scala %}
scala> var accum = sc.accumulator(0) scala> val accum = sc.accumulator(0)
accum: spark.Accumulator[Int] = 0 accum: spark.Accumulator[Int] = 0
scala> sc.parallelize(Array(1, 2, 3, 4)).foreach(x => accum += x) scala> sc.parallelize(Array(1, 2, 3, 4)).foreach(x => accum += x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment