-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20595][Deploy]Parse the 'SPARK_EXECUTOR_INSTANCES' into the parsed arguments #17859
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
|
@srowen @HyukjinKwon Can you take a look, thanks a lot. |
|
Can one of the admins verify this patch? |
|
No, I believe that only exists for YARN client mode. |
|
Hi @srowen, the follow is the test result, the submit script: after And also this parameter doesn't affect other |
|
This change causes it to affect all usages of spark-submit right? if you look at the comment about it in the config template, it suggests it is for YARN client mode only. I don't know the history of this value and it may be obsolete and for backwards compatibility, but, I am not clear that it should be used this way, no. |
|
It only affect the YARN mode, just see the follow code: But from the latest code, this parameter affect both And also, this parameter is set in So only you set it by |
|
Hi @vanzin, can you help to take a look? The affect of |
|
This was intentionally removed. Env-based configs have been deprecated for a long time, and some were already removed. Use a proper configuration file (or command line option) for that. See SPARK-17979. |
|
@vanzin Thanks a lot for you review. Do we need remove the comments from template config? It doesn't work anymore in current version. |
Ah, that would be a good idea. I also noticed it's still used in I also took a closer look at SPARK-17979 and this particular env variable wasn't removed in that change; seems it was removed much earlier (SPARK-9092 as far as I can tell), so looks it isn't very widely used. |
|
Ok, I will open another pr to remove it. Thanks a lot both of you. |
What changes were proposed in this pull request?
Currently, when we set the parameter
SPARK_EXECUTOR_INSTANCESin thespark-env.sh, it seems that the parameter doesn't parsed by Spark. So this patch parse the 'SPARK_EXECUTOR_INSTANCES' into the parsed arguments.How was this patch tested?
Existing tests.