-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Deploy mode client ? #1406
Comments
@lboudard Behind the scenes, "spark-submit" is eventually called with "--deploy-mode client" argument. This behavior is not specific to spark-operator, but to spark itself. Concluding, the answer to your question is "your app runs in cluster mode". |
As far as I know Spark operator lets users do spark-submit commits using yaml and takes care of complex configuration issues. As I answered #1652 (comment), if you want spark application on k8s, you can use client mode and configure it on k8s (spark.master, etc.) in the application. Pyspark users can use the sparglim package to build client mode applications quickly. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it. |
I've seen in multiple issues (see here) that spark-application/operator is not supposed to support
client
mode yet, even though it seems that it is available from specs definitionsTrying to set
mode: client
in spark-application job definition results in following error at spark-operator level:Though setting
mode: cluster
(default) actually calls the default spark docker image entrypoint, which seems by default submit/startup with client mode:https://github.com/apache/spark/blob/master/resource-managers/kubernetes/docker/src/main/dockerfiles/spark/entrypoint.sh
and indeed at the startup of the driver:
So I'm not really sure if the spark job submitted this way is actually in cluster mode or in client mode?
Version info:
chart-info: spark-operator-1.1.10
spark-operator version: v1beta2-1.2.3-3.1.1
Thanks!
The text was updated successfully, but these errors were encountered: