diff --git a/core/src/main/scala/org/apache/spark/SparkContext.scala b/core/src/main/scala/org/apache/spark/SparkContext.scala index a1003b7925715..2788b89810016 100644 --- a/core/src/main/scala/org/apache/spark/SparkContext.scala +++ b/core/src/main/scala/org/apache/spark/SparkContext.scala @@ -135,6 +135,11 @@ class SparkContext( // An asynchronous listener bus for Spark events private[spark] val listenerBus = new LiveListenerBus + /** + * Return the listener bus held by the driver. + */ + def getListenerBus: SparkListenerBus = listenerBus + // Create the Spark execution environment (cache, map output tracker, etc) private[spark] val env = SparkEnv.create( conf,