vanzin commented on a change in pull request #26170: [SPARK-29397][core] Extend
plugin interface to include the driver.
URL: https://github.com/apache/spark/pull/26170#discussion_r338783293
##########
File path: core/src/main/scala/org/apache/spark/SparkContext.scala
##########
@@ -539,6 +541,9 @@ class SparkContext(config: SparkConf) extends Logging {
_heartbeatReceiver = env.rpcEnv.setupEndpoint(
HeartbeatReceiver.ENDPOINT_NAME, new HeartbeatReceiver(this))
+ // Initialize any plugins before the task scheduler is initialized.
+ _plugins = PluginContainer(this)
Review comment:
Also, if you really want to, you can register metrics later. Just install a
listener and wait for the "application start" event. (You just need at least a
dummy metric registered here, or your source won't be initialized. But that can
be fixed easily.)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]