Skip to content
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-11880][Windows][Spark Submit] bin/load-spark-env.cmd loads spark-env.cmd from wrong directory #9863

Closed
wants to merge 1 commit into from

Conversation

toddwan
Copy link
Contributor

@toddwan toddwan commented Nov 20, 2015

  • On windows the bin/load-spark-env.cmd tries to load spark-env.cmd from %~dp0..\..\conf, where ~dp0 points to bin and conf is only one level up.
  • Updated bin/load-spark-env.cmd to load spark-env.cmd from %~dp0..\conf, instead of %~dp0..\..\conf

@srowen
Copy link
Member

srowen commented Nov 21, 2015

LGTM though how did this ever work then?

@SparkQA
Copy link

SparkQA commented Nov 21, 2015

Test build #2092 has finished for PR 9863 at commit 094e3e3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@toddwan toddwan force-pushed the master branch 2 times, most recently from c72c9ac to 094e3e3 Compare November 21, 2015 16:46
@toddwan
Copy link
Contributor Author

toddwan commented Nov 21, 2015

I guess users on Windows platform seldom touch spark-env.cmd, and have lots of workarounds if they ran into this issue.

@andrewor14
Copy link
Contributor

Thanks, merging into master 1.6.

asfgit pushed a commit that referenced this pull request Nov 25, 2015
…rk-env.cmd from wrong directory

* On windows the `bin/load-spark-env.cmd` tries to load `spark-env.cmd` from `%~dp0..\..\conf`, where `~dp0` points to `bin` and `conf` is only one level up.
* Updated `bin/load-spark-env.cmd` to load `spark-env.cmd` from `%~dp0..\conf`, instead of `%~dp0..\..\conf`

Author: wangt <[email protected]>

Closes #9863 from toddwan/master.

(cherry picked from commit 9f3e59a)
Signed-off-by: Andrew Or <[email protected]>
@asfgit asfgit closed this in 9f3e59a Nov 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants