Further more, the second building can be passed, but exception
will be throw while running:
Exception is NoClassDefFoundError.

The situation is the same as the sample on line -- VectorAccumulatorParam.

So to me, if I don't implement the addAccumulator function, I cannot custom
the AccumulatorParam.

So I think the successful building of the second time maybe just some lazy
setting of mvn , and I think I can still treat it as fail of building.

I copy the VectorAccumulatorParam sample from the  online doc
<https://spark.apache.org/docs/latest/programming-guide.html#parallelized-collections>
 
, and the 
importance in my code which are related to AccumulatorParam are:

/import org.apache.spark.Accumulator;
import org.apache.spark.AccumulatorParam;/

And I cannot get it pass the building ONZ.



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Inconsistency-of-implementing-accumulator-in-Java-tp16278p16293.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to