-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-47573][K8S] Support custom driver log url #45728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e12ba58 to
a3fe442
Compare
412e9d0 to
409ce35
Compare
|
@dongjoon-hyun What do you think? |
|
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
409ce35 to
b0e1cde
Compare
|
@dongjoon-hyun thanks for the pointer! Is the live log supported by the Spark History Server? Or are they only available during runtime of the Spark app? Are they log collected? Executor logs are links to the log collections service but driver logs are not? Sounds different to the |
|
It's not the same of course, @EnricoMi .
What I wrote is |
|
Haven't seen the live log feature before. |
|
Ya, maybe I made you confused.
The
So, it is not relevant to this PR technically. |
|
Thanks for clarification. |
|
Let me reopen this for now because it seems to be closed by the bot. |
|
@dongjoon-hyun any thoughts on this? |
|
@dongjoon-hyun can we get this into the Spark 4.0.0 release? |
|
Let me check this PR quickly since I'm currently preparing Apache Spark 4.0.0-preview2, @EnricoMi . |
| .stringConf | ||
| .createOptional | ||
|
|
||
| val CUSTOM_DRIVER_LOG_URL = ConfigBuilder("spark.ui.custom.driver.log.url") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this doesn't have spark.kubernetes. prefix, this is supposed to work with YARN, @EnricoMi . Are you sure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was just derived from spark.ui.custom.executor.log.url, where I suspect this should be similar. The property name does not mention Yarn, and documentation says that only K8s support this.
4609e87 to
a09526c
Compare
a09526c to
188c968
Compare
|
Could you fix the compilation errors? |
188c968 to
e0872a4
Compare
|
@dongjoon-hyun fixed |
e0872a4 to
9215c17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we use 4.1.0 since master branch is 4.1.0-SNAPSHOT?
Line 29 in a30bdc3
| <version>4.1.0-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
docs/configuration.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto. Let's use 4.1.0 since master branch is 4.1.0-SNAPSHOT.
Line 29 in a30bdc3
| <version>4.1.0-SNAPSHOT</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
…iver Pod" This reverts commit 69820e0d7b57b716e055418c6dd18815a03b899e.
…rnetesClusterSchedulerBackend
9215c17 to
aebcc62
Compare
|
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |



What changes were proposed in this pull request?
Add config
spark.ui.custom.driver.log.urlto Kubernetes resource manager allow setting log url templates similar tospark.ui.custom.executor.log.url.Allows for
Supports these variables:
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