Skip to content

Instantly share code, notes, and snippets.

@doppiomacchiatto
Forked from rolandjitsu/spark.md
Created May 26, 2019 14:34
Show Gist options
  • Select an option

  • Save doppiomacchiatto/28b99d2d809711826285516678d5b6c7 to your computer and use it in GitHub Desktop.

Select an option

Save doppiomacchiatto/28b99d2d809711826285516678d5b6c7 to your computer and use it in GitHub Desktop.
Apache Spark installation for Mac OS X

Apache Spark

Install steps for Apache Spark on Mac OS X using Homebrew.

Install Java Development Kit


Download and install it from oracle.com, then add following code to your .bash_profile, .zshrc, etc.:

# Apache Spark
if which java > /dev/null; then export JAVA_HOME=$(/usr/libexec/java_home); fi

Install Apache Spark


Update brew formulae first, then install Scala and Spark.

brew upgrade && brew update
brew install scala
brew install apache-spark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment