Created
February 5, 2018 06:12
-
-
Save seahrh/21dd6807727e8218412d77bae6b9f345 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
#!/usr/bin/env bash | |
export SPARK_MAJOR_VERSION=2 | |
/usr/hdp/current/spark2-client/bin/spark-submit --conf spark.serializer=org.apache.spark.serializer.KryoSerializer \ | |
--files /path/to/log4j.properties \ | |
--conf spark.yarn.executor.memoryOverhead=1024 \ | |
--conf spark.port.maxRetries=64 \ | |
--conf spark.driver.extraJavaOptions='-Dlog4j.debug -Dlog4j.configuration=file:/path/to/log4j.properties -Da=a1' \ | |
--conf spark.executor.extraJavaOptions='-Dlog4j.debug -Dlog4j.configuration=log4j.properties' \ | |
--master yarn \ | |
--deploy-mode client \ | |
--queue myqueue \ | |
--num-executors 4 \ | |
--driver-memory 2g \ | |
--executor-cores 4 \ | |
--executor-memory 15g \ | |
--proxy-user myuser \ | |
--class com.example.MainClass \ | |
/path/to/project/project-assembly-1.0.jar \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment