EnricoMi opened a new pull request, #45728:
URL: https://github.com/apache/spark/pull/45728
### What changes were proposed in this pull request?
Add config `spark.ui.custom.driver.log.url` to Kubernetes resource manager
allow setting log url templates similar to `spark.ui.custom.executor.log.url`.
Allows for
--conf
spark.ui.custom.driver.log.url="https://my-custom.url/api/logs?applicationId={{APP_ID}}
Supports these variables:
APP_ID: The unique application id
KUBERNETES_NAMESPACE: The namespace where the executor pods run
KUBERNETES_POD_NAME: The name of the pod that contains the executor
FILE_NAME: The name of the log, which is always "log"
Adds driver pod environment variable `SPARK_DRIVER_POD_NAME`.
### Why are the changes needed?
Running Spark on Kubernetes requires persisting the logs elsewhere. Having
the Spark UI link to those logs is very useful. This should be possible for
driver logs similar to executor logs.
### Does this PR introduce _any_ user-facing change?
Spark UI provides links to logs when run on Kubernetes.
### How was this patch tested?
Unit test and manually tested on minikube K8S cluster.
### Was this patch authored or co-authored using generative AI tooling?
No
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]