Created
July 30, 2019 08:24
-
-
Save vansika/2319ac841b02e65068fafd3bedb53b00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source config.sh | |
zip -r listenbrainz_spark.zip listenbrainz_spark/ | |
time ./run.sh /usr/local/spark/bin/spark-submit \ | |
--packages org.apache.spark:spark-avro_2.11:2.4.1 \ | |
--master $SPARK_URI \ | |
--conf "spark.scheduler.listenerbus.eventqueue.capacity"=$LISTENERBUS_CAPACITY \ | |
--conf "spark.cores.max"=$MAX_CORES \ | |
--conf "spark.executor.cores"=$EXECUTOR_CORES \ | |
--conf "spark.executor.memory"=$EXECUTOR_MEMORY \ | |
--conf "spark.driver.memory"=$DRIVER_MEMORY \ | |
--py-files listenbrainz_spark.zip \ | |
"$@" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment