Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Named accumulator in pyspark

In scala spark it is possible to create a named accumulator which will display in the web ui by

val accum = sc.accumulator(0, "My Accumulator")

However the pyspark sc.accumulator() method has no name argument. Is it possible to create a named accumulator in pyspark which will display in the web ui?

like image 428
proproygon Avatar asked Aug 01 '18 18:08

proproygon


1 Answers

creating a named accumulator is not possible in pyspark. this issue has already been raised. you can track this thread https://issues.apache.org/jira/browse/SPARK-2868.

like image 111
Deepak Kumar Avatar answered Nov 17 '22 02:11

Deepak Kumar