Install steps for Apache Spark on Mac OS X using Homebrew.
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); fiUpdate brew formulae first, then install Scala and Spark.
brew upgrade && brew update
brew install scala
brew install apache-spark
then Run
spark-shellin console