Skip to content

Instantly share code, notes, and snippets.

@rolandjitsu
Forked from ololobus/Spark+ipython_on_MacOS.md
Last active February 25, 2021 08:51
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rolandjitsu/0d470184c4cebaaf48892448638bbb38 to your computer and use it in GitHub Desktop.
Save rolandjitsu/0d470184c4cebaaf48892448638bbb38 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
@jptiancai
Copy link

then Run spark-shell in console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment