Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/4111#discussion_r23338741
--- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
@@ -379,6 +379,41 @@ class SparkContext(config: SparkConf) extends Logging
with ExecutorAllocationCli
}
executorAllocationManager.foreach(_.start())
+ // Use reflection to instantiate listeners specified via the
`spark.extraListeners` configuration
+ // or the SPARK_EXTRA_LISTENERS environment variable
+ try {
+ val listenerClassNames: Seq[String] = {
+ val fromSparkConf = conf.get("spark.extraListeners", "").split(',')
+ val fromEnvVar =
Option(conf.getenv("SPARK_EXTRA_LISTENERS")).getOrElse("").split(',')
--- End diff --
I see. I think at some point it would be nice to have a better long-term
solution for this kind of scenario. I added `SPARK_DIST_CLASSPATH` in #2982 for
similar reasons, but if we have something like "spark-dist.conf" in
`SPARK_CONF_DIR`, we could at some point merge those values with the user's
configuration and avoid adding more env variables like this.
Anyway, separate discussion.
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]