You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/05/24 22:46:11 UTC
[GitHub] [spark] gerashegalov commented on a change in pull request #32456: [SPARK-35328][Core] Use 'SPARK_DRIVER_LOG_URL_' as env prefix for getting driver log urls by default
gerashegalov commented on a change in pull request #32456:
URL: https://github.com/apache/spark/pull/32456#discussion_r638337204
##########
File path: core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala
##########
@@ -655,6 +656,13 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, val rpcEnv: Rp
false
}
+ override def getDriverLogUrls: Option[Map[String, String]] = {
+ val prefix = "SPARK_DRIVER_LOG_URL_"
+ val driverLogUrls = sys.env.filterKeys(_.startsWith(prefix))
+ .map(e => (e._1.substring(prefix.length).toLowerCase(Locale.ROOT), e._2)).toMap
Review comment:
nit: I understand the code is just copied but this `toMap` seems unnecessary.
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org