Skip to content

Commit

Permalink
Support custom driver log urls
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Mar 22, 2024
1 parent 648f9b5 commit e28de27
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ private[spark] class KubernetesClusterSchedulerBackend(
conf.getOption("spark.app.id").getOrElse(appId)
}

override def getDriverAttributes: Option[Map[String, String]] = Some(Map(
"LOG_FILES" -> "log",
"APP_ID" -> applicationId,
"KUBERNETES_NAMESPACE" -> namespace
))

override def start(): Unit = {
super.start()
// Must be called before setting the executors
Expand Down

0 comments on commit e28de27

Please sign in to comment.