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 can't use outside spark master #1

Open
flangelier opened this issue Apr 8, 2015 · 1 comment
Open

Adam-submit can't use outside spark master #1

flangelier opened this issue Apr 8, 2015 · 1 comment

Comments

@flangelier
Copy link
Contributor

Problem

Adam-submit is using spark in the localhost, but if we want yo use another spark cluster, adam-submit is failing.

From what I found out, adam-submit (which is calling spark-submit) don't have ways to give args to the spark-submit.

This is the command i used :
(you need a spark master and a hdfs cluster to run it)

docker run --link=spark-master:spark-master --link=hdfs-namenode:hdfs-namenode gelog/adam \ 
adam-submit --master spark://spark-master:7077 \
transform \
hdfs://hdfs-namenode:9000/SRR062634.sam \
hdfs://hdfs-namenode:9000/SRR062634.adam

Solution

We cloud tweak the adam-submit script to pass an ENV variable when it call the spark-submit
The env var cloud be something like $SPARK_SUBMIT_ARGS with an empty default value but we cloud gave a value like

SPARK_SUBMIT_ARGS='--master spark://spark-master:7077'

and use the following command:

docker run -e "SPARK_SUBMIT_ARGS=--master spark://spark-master:7077" \
--link=spark-master:spark-master --link=hdfs-namenode:hdfs-namenode gelog/adam \ 
adam-submit \
transform \
hdfs://hdfs-namenode:9000/SRR062634.sam \
hdfs://hdfs-namenode:9000/SRR062634.adam
@flangelier
Copy link
Contributor Author

Add

$SPARK_SUBMIT_ARGS \

after

"$SPARK_SUBMIT" \

in /usr/local/adam/bin/adam-submit

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

1 participant