[
https://issues.apache.org/jira/browse/SPARK-650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15580062#comment-15580062
]
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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]