-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-3560] Fixed setting spark.jars system property in yarn-cluster mode #2449
Conversation
Can one of the admins verify this patch? |
Hi, mostly so I understand what's going on (I've traced the code but it's kinda hard to know if I covered everything), how are jars distributed in yarn cluster mode after your change? It seems to me that your change just makes the If that's not the case, could you clarify in the PR description how |
ok to test |
@vanzin |
@vanzin The --jars will still work in YARN cluster mode through the distributed cache. Removing the spark.jars system property only prevents the HttpFileServer mechanism to also take effect. Having both in YARN cluster mode will cause problems because of how YARN set the permissions of the files in distributed cache. |
QA tests have started for PR 2449 at commit
|
@@ -205,6 +205,7 @@ object SparkSubmit { | |||
OptionAssigner(args.jars, YARN, CLUSTER, clOption = "--addJars"), | |||
|
|||
// Other options | |||
OptionAssigner(args.jars, STANDALONE, CLUSTER, sysProp = "spark.jars"), |
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.
1 too many space here
LGTM |
Ah, I see. Missed this in SparkSubmit.scala:
LGTM. |
QA tests have started for PR 2449 at commit
|
QA tests have finished for PR 2449 at commit
|
Thanks I have merged this into master and 1.1. @Victsm Do you have a JIRA account? I want to assign you to https://issues.apache.org/jira/browse/SPARK-3560 but I can't find your username. |
… mode Author: Victsm <[email protected]> Author: Min Shen <[email protected]> Closes #2449 from Victsm/SPARK-3560 and squashes the following commits: 918405a [Victsm] Removed the additional space 4502a2a [Min Shen] [SPARK-3560] Fixed setting spark.jars system property in yarn-cluster mode.
@andrewor14 My JIRA account is mshen. That issues has just been closed. |
Yup, I just assigned it to you. Thanks. |
@@ -205,6 +205,7 @@ object SparkSubmit { | |||
OptionAssigner(args.jars, YARN, CLUSTER, clOption = "--addJars"), | |||
|
|||
// Other options | |||
OptionAssigner(args.jars, STANDALONE, CLUSTER, sysProp = "spark.jars"), |
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.
This should go under the "standalone" section.
Saw this already went in, but had one stylistic/organization nit that might be worth fixing |
QA tests have finished for PR 2449 at commit
|
Oh yeah, good catch. I have opened #2452 to fix this. |
This was introduced in #2449 Author: Andrew Or <[email protected]> Closes #2452 from andrewor14/standalone-hot-fix and squashes the following commits: d5190ca [Andrew Or] Put that line in the right place (cherry picked from commit 9306297) Signed-off-by: Andrew Or <[email protected]>
This was introduced in #2449 Author: Andrew Or <[email protected]> Closes #2452 from andrewor14/standalone-hot-fix and squashes the following commits: d5190ca [Andrew Or] Put that line in the right place
… mode Author: Victsm <[email protected]> Author: Min Shen <[email protected]> Closes apache#2449 from Victsm/SPARK-3560 and squashes the following commits: 918405a [Victsm] Removed the additional space 4502a2a [Min Shen] [SPARK-3560] Fixed setting spark.jars system property in yarn-cluster mode.
This was introduced in apache#2449 Author: Andrew Or <[email protected]> Closes apache#2452 from andrewor14/standalone-hot-fix and squashes the following commits: d5190ca [Andrew Or] Put that line in the right place (cherry picked from commit 9306297) Signed-off-by: Andrew Or <[email protected]>
No description provided.