GitHub user JoshRosen opened a pull request:

    https://github.com/apache/spark/pull/4111

    [SPARK-5190] Allow SparkListeners to be registered before SparkContext is 
initialized

    This patch extends the SparkContext constructor to accept a list of 
SparkListeners to register before initializing the ListenerBus.  This is 
necessary in order for custom listeners to be able to receive certain events, 
such as SparkListenerEnvironmentUpdate.
    
    I also added a `addSparkListener` methods to JavaSparkContext.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/JoshRosen/spark 
SPARK-5190-register-sparklistener-in-sc-constructor

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/4111.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4111
    
----
commit 163ba19f04bd93247d56e79a6cfa5950427d25e3
Author: Josh Rosen <joshro...@databricks.com>
Date:   2015-01-20T03:18:36Z

    [SPARK-5190] Allow SparkListeners to be registered before SparkContext 
starts.

commit 25988f377fc0cbeadbddd630f9564697b07ef877
Author: Josh Rosen <joshro...@databricks.com>
Date:   2015-01-20T03:22:27Z

    Add addSparkListener to JavaSparkContext

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to