-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[HOTFIX] Do not throw NPE if spark.test.home is not set #1739
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
When standalone Workers launch executors, they inherit the Spark home set by the driver. This means if the worker machines do not share the same directory structure as the driver node, the Workers will attempt to run scripts (e.g. bin/compute-classpath.sh) that do not exist locally and fail. This is a common scenario if the driver is launched from outside of the cluster. The solution is to simply not pass the driver's Spark home to the Workers. This PR further makes an attempt to avoid overloading the usages of `spark.home`, which is now only used for setting executor Spark home on Mesos and in python. This is based on top of #1392 and originally reported by YanTangZhai. Tested on standalone cluster. Author: Andrew Or <[email protected]> Closes #1734 from andrewor14/spark-home-reprise and squashes the following commits: f71f391 [Andrew Or] Revert changes in python 1c2532c [Andrew Or] Merge branch 'master' of github.com:apache/spark into spark-home-reprise 188fc5d [Andrew Or] Avoid using spark.home where possible 09272b7 [Andrew Or] Always use Worker's working directory as spark home
|
QA tests have started for PR 1739. This patch merges cleanly. |
|
Did you run these tests locally? I still had some failures. One thing I think we need to do is set the system properties (instead of the SPARK_HOME env var) in the root pom.xml. I think you can replace what's there with: |
|
btw - you can run just the relevant tests here with: |
|
I merged this with the extra change... let's see how it goes. |
|
QA results for PR 1739: |
`spark.test.home` was introduced in #1734. This is fine for SBT but is failing maven tests. Either way it shouldn't throw an NPE. Author: Andrew Or <[email protected]> Closes #1739 from andrewor14/fix-spark-test-home and squashes the following commits: ce2624c [Andrew Or] Do not throw NPE if spark.test.home is not set
|
Ah, I see. Thanks Patrick. |
`spark.test.home` was introduced in apache#1734. This is fine for SBT but is failing maven tests. Either way it shouldn't throw an NPE. Author: Andrew Or <[email protected]> Closes apache#1739 from andrewor14/fix-spark-test-home and squashes the following commits: ce2624c [Andrew Or] Do not throw NPE if spark.test.home is not set
…he#1739) Add `BosonFilter` case in `stripSparkFilter` in `SQLTestUtils` for Boson testing purpose
spark.test.homewas introduced in #1734. This is fine for SBT but is failing maven tests. Either way it shouldn't throw an NPE.