Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/6166#discussion_r30430883
--- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
@@ -1912,6 +1922,17 @@ class SparkContext(config: SparkConf) extends
Logging with ExecutorAllocationCli
// the cluster manager to get an application ID (in case the cluster
manager provides one).
listenerBus.post(SparkListenerApplicationStart(appName,
Some(applicationId),
startTime, sparkUser, applicationAttemptId))
+ val logPrefix = "spark.driver.log."
+ logUrls = Option(
+ System.getProperties.stringPropertyNames()
+ .filter(_.startsWith(logPrefix))
+ .map(key => (key.substring(logPrefix.length),
System.getProperty(key)))
+ .toMap
+ )
+ _logUrls.foreach { logUrlsMap =>
+
listenerBus.post(SparkListenerExecutorAdded(System.currentTimeMillis(),
--- End diff --
Hmm, as far as I can see in the current master,
`SparkListenerExecutorAdded` was never posted for the driver before. That may
have some side-effects that need to be checked.
For example, I'm pretty sure `ExecutorAllocationManager.scala` needs to be
changed to ignore the driver.
---
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]