Uh oh!
There was an error while loading. Please reload this page.
[SPARK-25516][k8s]Utilities needed for spark-history and spark-shuffle-service - #22538
[SPARK-25516][k8s]Utilities needed for spark-history and spark-shuffle-service#22538BYondRAK wants to merge 1 commit into
Conversation
Adding procps and coreutils to enable this image to execute the spark-history and spark-shuffle-service shell scripts.
AmplabJenkins
commented
Sep 24, 2018
Can one of the admins verify this patch? |
dongjoon-hyun
commented
Sep 24, 2018
Thank you for your first contribution, @BYondRAK .
|
dongjoon-hyun
commented
Sep 24, 2018
cc @liyinan926 |
BYondRAK
commented
Sep 24, 2018
Created an issue and updated as requested. |
liyinan926
commented
Sep 24, 2018
The Kubernetes mode doesn't yet have a shuffle service nor support dynamic resource allocation. I don't know what the script you referred to is for, but it's not for starting a shuffle service to be used with the Kubernetes scheduler backend. |
BYondRAK
commented
Sep 24, 2018
Shuffle Service - Attempting to establish a standalone shuffle service via daemonset to allow for dynamic allocation when using the kubernetes master. When I try to run the shuffle service via that script as entrypoint, the errors above prevent that. Spark History Server - Attempting to collect in a common location the spark events that will be written after passing the pod information to spark using kubernetes master. Trying this is what led me to the issue. I'd like to use the image generated via spark documentation if possible. |
liyinan926
commented
Sep 24, 2018
OK, this image is for the kubernetes scheduler backend that runs executors natively in k8s pods. The image is not supposed to be used in the way as described above. I assume the script your referred to is for starting the shuffle service for a standalone cluster. Yes, you can deploy a standalone Spark cluster on k8s. However, this is not the image you should be using for doing that. |
BYondRAK
commented
Sep 24, 2018
OK, thanks for the explanation. |
dongjoon-hyun
commented
Sep 24, 2018
Given the explanation, can we close this PR?
|
BYondRAK
commented
Sep 24, 2018
sure thing |
dongjoon-hyun
commented
Sep 24, 2018
Thanks, @BYondRAK . |
Summary
When attempting to run ./sbin/start-shuffle-service.sh the image errors with the following output:
ps: unrecognized option: pAdding the
procpspackage fixes this issue.After correcting the issue with
ps, the code will then error with:nohup: can't execute '--': No such file or directoryThis is remedied with the inclusion of
coreutilsto the apk add statement.The ./sbin/start-history-server.sh also requires the added packages to successfully start.
What changes were proposed in this pull request?
Adding procps and coreutils to enable this image to execute the spark-history and spark-shuffle-service shell scripts.
How was this patch tested?
Tested via docker manually