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
export HADOOP_VERSION=2.9.1 | |
export SPARK_VERSION=2.3.2 | |
export AWS_ACCOUNT_ID=<your numeric AWS account id> | |
export ECR_REGION=us-east-1 | |
# Fetch and extract the spark source | |
curl -L "https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}.tgz" | tar -xzvf - | |
cd "spark-${SPARK_VERSION}" | |
# set maven opts according to https://spark.apache.org/docs/latest/building-spark.html | |
export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m" |