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

adam-submit fails with no Spark installation #857

Closed
laserson opened this issue Oct 8, 2015 · 3 comments
Closed

adam-submit fails with no Spark installation #857

laserson opened this issue Oct 8, 2015 · 3 comments

Comments

@laserson
Copy link
Contributor

laserson commented Oct 8, 2015

If I don't set SPARK_HOME and I don't have spark-submit on my PATH, then adam-submit errors out early:

$ bin/adam-submit 
Using ADAM_MAIN=org.bdgenomics.adam.cli.ADAMMain

I believe it's because the subshell call to which spark-submit returns an error code and adam-submit calls set -e.

@laserson
Copy link
Contributor Author

laserson commented Oct 8, 2015

cc @heuermh

@heuermh
Copy link
Member

heuermh commented Oct 8, 2015

I thought you were the bash expert? ;)
I can confirm this happens on HEAD.

@heuermh
Copy link
Member

heuermh commented Oct 8, 2015

After further investigation it doesn't appear to be caused by anything I added recently. Commenting out set -e does the trick, what is that for?

laserson added a commit to laserson/adam that referenced this issue Oct 8, 2015
Because of `set -e`, the `which spark-submit` subshell command was causing the script to exit early.

Fixes bigdatagenomics#857.
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

No branches or pull requests

2 participants