How to install apache-spark 2.2.0 with homebrew on Mac (I also teach Full Stack Web Development with Django!) If you’re interested in learning Python for Data Science and Machine learning, check out my course here. I’m Jose Portilla, and I teach over 200,000 students about programming, data science, and machine learning on Udemy. Just type that straight into your terminal. Homebrew should have taken care of all of this, but in case you need to add spark to your PATH, you’ll want to use:Įxport SPARK_HOME=/usr/local/Cellar/apache-spark/2.0.1/libexecexport PYTHONPATH=/usr/local/Cellar/apache-spark/2.0.1/libexec/python/:$PYTHONP$ You can confirm that it is working by typing the scala code: _/\_,_/_/ /_/\_\ version 2.0.1 /_/ Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_102)Type in expressions to have them evaluated.Type :help for more information. You should see a flood of text and warnings but eventually see something like this: Homebrew will now download and install Apache Spark, it may take some time depending on your internet connection. Now with Scala installed go to your terminal and type: Step 5: Use Homebrew to install Apache Spark Now with Home brew installed go to your terminal and type: After running this Homebrew should have taken care of the Java install. You may need to enter your password at some point to complete the java installation. The easiest way to install it is to just use HomeBrew: Scala is dependent on Java, you may or may not need to install it.