-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40423][K8S][TESTS] Add explicit YuniKorn queue submission test coverage #37877
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
| ```bash | ||
| --conf spark.kubernetes.scheduler.name=yunikorn | ||
| --conf spark.kubernetes.driver.label.queue=root.default | ||
| --conf spark.kubernetes.executor.label.queue=root.default |
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.
Apache YuniKorn provides two ways to set queues. We choose the simpler one.
| helm repo update | ||
| kubectl create namespace yunikorn | ||
| helm install yunikorn yunikorn/yunikorn --namespace yunikorn --version 1.1.0 | ||
| helm install yunikorn yunikorn/yunikorn --namespace yunikorn --version 1.1.0 --create-namespace --set embedAdmissionController=false |
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 should not install YuniKorn admission controller because it doesn't allow other schedulers by default.
|
Could you review this when you have some time, @viirya ? |
… coverage ### What changes were proposed in this pull request? This PR aims to add explicit Yunikorn queue submission test coverage instead of implicit assignment by admission controller. ### Why are the changes needed? - To provide a proper test coverage. - To prevent the side effect of YuniKorn admission controller which overrides all Spark's scheduler settings by default (if we do not edit the rule explicitly). This breaks Apache Spark's default scheduler K8s IT test coverage. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually run the CI and check the YuniKorn queue UI. ``` $ build/sbt -Psparkr -Pkubernetes -Pkubernetes-integration-tests -Dspark.kubernetes.test.deployMode=docker-desktop "kubernetes-integration-tests/test" -Dtest.exclude.tags=minikube,local,decom -Dtest.default.exclude.tags= ``` <img width="1197" alt="Screen Shot 2022-09-14 at 2 07 38 AM" src="https://user-images.githubusercontent.com/9700541/190112005-5863bdd3-2e43-4ec7-b34b-a286d1a7c95e.png"> Closes #37877 from dongjoon-hyun/SPARK-40423. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 12e4852) Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
This PR aims to add explicit Yunikorn queue submission test coverage instead of implicit assignment by admission controller.
Why are the changes needed?
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manually run the CI and check the YuniKorn queue UI.