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-388] Sets Kryo serialization with --conf args #396

Merged
merged 1 commit into from
Sep 29, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bin/adam-pyspark
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ fi

# submit the job to Spark
"$SPARK_SHELL" \
--properties-file "$ADAM_REPO"/bin/adam-spark-defaults.conf \
--conf spark.serializer=org.apache.spark.serializer.KryoSerializer \
--conf spark.kryo.registrator=org.bdgenomics.adam.serialization.ADAMKryoRegistrator \
--conf spark.kryoserializer.buffer.mb=4 \
--conf spark.kryo.referenceTracking=true \
--jars "$ADAM_JARS" \
"$@"
5 changes: 4 additions & 1 deletion bin/adam-shell
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ fi

# submit the job to Spark
"$SPARK_SHELL" \
--properties-file "$ADAM_REPO"/bin/adam-spark-defaults.conf \
--conf spark.serializer=org.apache.spark.serializer.KryoSerializer \
--conf spark.kryo.registrator=org.bdgenomics.adam.serialization.ADAMKryoRegistrator \
--conf spark.kryoserializer.buffer.mb=4 \
--conf spark.kryo.referenceTracking=true \
--jars "$ADAM_JARS" \
"$@"
20 changes: 0 additions & 20 deletions bin/adam-spark-defaults.conf

This file was deleted.

5 changes: 4 additions & 1 deletion bin/adam-submit
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ fi
# submit the job to Spark
"$SPARK_SUBMIT" \
--class org.bdgenomics.adam.cli.ADAMMain \
--properties-file "$ADAM_REPO"/bin/adam-spark-defaults.conf \
--conf spark.serializer=org.apache.spark.serializer.KryoSerializer \
--conf spark.kryo.registrator=org.bdgenomics.adam.serialization.ADAMKryoRegistrator \
--conf spark.kryoserializer.buffer.mb=4 \
--conf spark.kryo.referenceTracking=true \
--jars "$ADAM_JARS" \
"$ADAM_CLI_JAR" \
"$@"
12 changes: 6 additions & 6 deletions scripts/jenkins-test
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ export SPARK_DRIVER_MEMORY=8g
pushd $ADAM_TMP_DIR

if [[ $HADOOP_VERSION == "1.0.4" ]]; then
wget http://d3kbcqa49mib13.cloudfront.net/spark-1.0.1-bin-hadoop1.tgz
tar xzvf spark-1.0.1-bin-hadoop1.tgz
export SPARK_HOME="${ADAM_TMP_DIR}/spark-1.0.1-bin-hadoop1"
wget http://d3kbcqa49mib13.cloudfront.net/spark-1.1.0-bin-hadoop1.tgz
tar xzvf spark-1.1.0-bin-hadoop1.tgz
export SPARK_HOME="${ADAM_TMP_DIR}/spark-1.1.0-bin-hadoop1"
else
wget http://d3kbcqa49mib13.cloudfront.net/spark-1.0.1-bin-hadoop2.tgz
tar xzvf spark-1.0.1-bin-hadoop2.tgz
export SPARK_HOME="${ADAM_TMP_DIR}/spark-1.0.1-bin-hadoop2"
wget http://d3kbcqa49mib13.cloudfront.net/spark-1.1.0-bin-hadoop2.3.tgz
tar xzvf spark-1.1.0-bin-hadoop2.3.tgz
export SPARK_HOME="${ADAM_TMP_DIR}/spark-1.1.0-bin-hadoop2.3"
fi

ADAM="./bin/adam-submit "
Expand Down