Hi, all There is a discussion about the accumulator in stack overflow: http://stackoverflow.com/questions/27357440/spark-accumalator-value-is-different-when-inside-rdd-and-outside-rdd
I comment about this question (from user Tim). As the output I tried, I hava two questions: 1. Why the addInplace function be called twice? 2. Why the order of two ouput is difference ? Any suggestion will be appreciated.