Sean Owen commented on SPARK-650:

This is still easy to do with mapPartitions, which can call 
{{initWithTheseParamsIfNotAlreadyInitialized(...)}} once per partition, which 
should guarantee it happens once per JVM before anything else proceeds. I don't 
think you need to bury it in serialization logic. I can see there are hard ways 
to implement this, but I believe an easy way is still readily available within 
the existing API mechanisms.

> Add a "setup hook" API for running initialization code on each executor
> -----------------------------------------------------------------------
>                 Key: SPARK-650
>                 URL: https://issues.apache.org/jira/browse/SPARK-650
>             Project: Spark
>          Issue Type: New Feature
>          Components: Spark Core
>            Reporter: Matei Zaharia
>            Priority: Minor
> Would be useful to configure things like reporting libraries

This message was sent by Atlassian JIRA

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

Reply via email to