Sean Owen commented on SPARK-650:

Yep, if you must pass some configuration, it generally can't happen magically 
at class-loading time. You can provide a "initIfNeeded(conf)" method that must 
be explicitly called in key places, but, that's simple and canonical Java 

In your example, there's no need to do anything. Just use the info in the 
function the executor runs. It's passed in the closure. This is entirely normal 

> 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