Skip to content

Instantly share code, notes, and snippets.

@rafaelfelix
Last active November 19, 2019 07:20
Show Gist options
  • Save rafaelfelix/8758d2dc1d8ceb3917863d94698105f0 to your computer and use it in GitHub Desktop.
Save rafaelfelix/8758d2dc1d8ceb3917863d94698105f0 to your computer and use it in GitHub Desktop.
spark-on-k8s-download-and-untar-spark.sh
#!/bin/bash
MIRROR=archive.apache.org
SPARK_VERSION=2.4.4
SPARK_VERSION_SUFFIX=-bin-hadoop2.7
curl -Lo spark.tgz https://${MIRROR}/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}${SPARK_VERSION_SUFFIX}.tgz && \
tar xvzf spark.tgz && mv spark-${SPARK_VERSION}${SPARK_VERSION_SUFFIX} spark
export SPARK_HOME=$(pwd)/spark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment