-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-34783][K8S] Support remote template files #31877
Conversation
Hi, @attilapiros . Could you review this PR? |
...ce-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala
Outdated
Show resolved
Hide resolved
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.
Looks like a useful feature.
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.
We may need to update the doc https://spark.apache.org/docs/latest/running-on-kubernetes.html#pod-template too.
...nagers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/KubernetesUtilsSuite.scala
Outdated
Show resolved
Hide resolved
@HyukjinKwon , @attilapiros , @viirya . In this case, I believe this vanilla approach is the only way. For the test case concern, I can still remove it but I prefer to have the test coverage for the new function for now. We can revise the test suite later with the |
+1 for keeping the test and I will revise it in my PR |
Thank you, @attilapiros . |
Sounds ok to me. |
Hi, All. |
...ce-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala
Outdated
Show resolved
Hide resolved
Also, the doc update is included. Thanks, @viirya . |
...ce-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala
Outdated
Show resolved
Hide resolved
...etes/core/src/main/scala/org/apache/spark/deploy/k8s/features/PodTemplateConfigMapStep.scala
Outdated
Show resolved
Hide resolved
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.
LGTM with the changes if tests pass
…ark/deploy/k8s/KubernetesUtils.scala Co-authored-by: Hyukjin Kwon <gurwls223@gmail.com>
…ark/deploy/k8s/features/PodTemplateConfigMapStep.scala Co-authored-by: Hyukjin Kwon <gurwls223@gmail.com>
Thank you for suggestion, @HyukjinKwon . I manually verified that the code works correctly and merged it. |
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.
LGTM
Thank you for review and approval, @HyukjinKwon and @attilapiros . |
Kubernetes integration test starting |
Kubernetes integration test status success |
Thank you, @viirya ! |
The failure is irrelevant one. Merged to master. |
This PR aims to support remote driver/executor template files. Currently, `KubernetesUtils.loadPodFromTemplate` supports only local files. With this PR, we can do the following. ```bash bin/spark-submit \ ... -c spark.kubernetes.driver.podTemplateFile=s3a://dongjoon/driver.yml \ -c spark.kubernetes.executor.podTemplateFile=s3a://dongjoon/executor.yml \ ... ``` Yes, this is an improvement. Manual testing. Closes apache#31877 from dongjoon-hyun/SPARK-34783-2. Lead-authored-by: Dongjoon Hyun <dhyun@apple.com> Co-authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dhyun@apple.com> (cherry picked from commit 2fa792a) Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
What changes were proposed in this pull request?
This PR aims to support remote driver/executor template files.
Why are the changes needed?
Currently,
KubernetesUtils.loadPodFromTemplate
supports only local files.With this PR, we can do the following.
Does this PR introduce any user-facing change?
Yes, this is an improvement.
How was this patch tested?
Manual testing.