diff --git a/docs/running-on-kubernetes.md b/docs/running-on-kubernetes.md index 043c08bee064d..06d2e3e248b8e 100644 --- a/docs/running-on-kubernetes.md +++ b/docs/running-on-kubernetes.md @@ -436,6 +436,13 @@ When there exists a log collection system, you can expose it at Spark Driver `Ex spark.ui.custom.executor.log.url='https://log-server/log?appId={{APP_ID}}&execId={{EXECUTOR_ID}}' ``` +You can add custom variables to this url template, populated with the values of existing executor environment variables like + +``` +spark.executorEnv.SPARK_EXECUTOR_ATTRIBUTE_YOUR_VAR='$(EXECUTOR_ENV_VAR)' +spark.ui.custom.executor.log.url='https://log-server/log?appId={{APP_ID}}&execId={{EXECUTOR_ID}}&your_var={{YOUR_VAR}}' +``` + ### Accessing Driver UI The UI associated with any application can be accessed locally using