-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-4161]Spark shell class path is not correctly set if "spark.driver.extraClassPath" is set in defaults.conf #3050
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
Test build #22699 has started for PR 3050 at commit
|
Test build #22699 has finished for PR 3050 at commit
|
Test PASSed. |
Test build #24052 has started for PR 3050 at commit
|
Test build #24052 has finished for PR 3050 at commit
|
Test PASSed. |
If this fix is |
Test build #24174 has started for PR 3050 at commit
|
@JoshRosen The code has been updated. |
Test build #24174 has finished for PR 3050 at commit
|
Test PASSed. |
Ping @andrewor14, do you think this is the right place to put this line? |
@@ -109,6 +109,9 @@ else | |||
fi | |||
JAVA_VERSION=$("$RUNNER" -version 2>&1 | grep 'version' | sed 's/.* version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q') | |||
|
|||
# SPARK-3936: scala does not assume use of the java classpath, so we need to add the "-Dscala.usejavacp=true" |
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.
is this the right JIRA? This seems to refer to a GraphX issue.
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.
Ah, good catch; I think this should be SPARK-4161.
@witgo I think this change looks fine, though I don't have the sufficient expertise on how Scala sets up its class paths to decide what implications this might have. I even think that we should probably do it in I suppose this is better than manually adding it in |
…ssPath" is set in defaults.conf
OK, I'll try. But CoarseMesosSchedulerBackend.scala#L156 is also dependent on the opt. |
Test build #24291 has started for PR 3050 at commit
|
In my local test, it works. |
Test build #24291 has finished for PR 3050 at commit
|
Test PASSed. |
Ok, LGTM I'll merge this into master and wait to backport it later into branch-1.2. |
…ver.extraClassPath" is set in defaults.conf Author: GuoQiang Li <[email protected]> Closes #3050 from witgo/SPARK-4161 and squashes the following commits: abb6fa4 [GuoQiang Li] move usejavacp opt to spark-shell 89e39e7 [GuoQiang Li] review commit c2a6f04 [GuoQiang Li] Spark shell class path is not correctly set if "spark.driver.extraClassPath" is set in defaults.conf
…ver.extraClassPath" is set in defaults.conf Author: GuoQiang Li <[email protected]> Closes #3050 from witgo/SPARK-4161 and squashes the following commits: abb6fa4 [GuoQiang Li] move usejavacp opt to spark-shell 89e39e7 [GuoQiang Li] review commit c2a6f04 [GuoQiang Li] Spark shell class path is not correctly set if "spark.driver.extraClassPath" is set in defaults.conf
No description provided.