I am also using spark 1.1.0 and I ran it on a cluster of nodes (it works if I
run it in local mode! ) 

If I put the accumulator inside the for loop, everything will work fine. I
guess the bug is that an accumulator can be applied to JUST one RDD. 

Still another undocumented 'feature' of Spark that no one from the people
who maintain Spark is willing to solve or at least to tell us about ...



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Bug-in-Accumulators-tp17263p17372.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to