Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/42#discussion_r10674139
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -1020,6 +1042,24 @@ class SparkContext(
       /** Register a new RDD, returning its RDD ID */
       private[spark] def newRddId(): Int = nextRddId.getAndIncrement()
     
    +  /** Post the environment update event if the listener bus is ready */
    +  private def postEnvironmentUpdate() {
    +    Option(listenerBus).foreach { bus =>
    --- End diff --
    
    addJar() calls this, which happens before the spark listener bus is 
initialized.
    
    Another way is to initialize the spark listener bus super early (before add 
jars). I don't prefer this, however, because it increases the gap between the 
initializations of the bus and the UI.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to