title: Getting Spark 1.5 to run on mac local
body: <p>I downloaded the prebuilt spark for hadoop 2.4 and I'm getting the following error when I try to fire up a SparkContext in python:</p>
  
  <pre><code>ClassNotFoundException: org.apache.spark.launcher.Main
  </code></pre>
  
  <p>The following code should be correct:</p>
  
  <pre><code>import sys, os
  os.environ['SPARK_HOME'] = '/spark-1.5.1-bin-hadoop2.4/'
  sys.path.insert(0, '/spark-1.5.1-bin-hadoop2.4/python/')
  os.environ['PYTHONPATH'] = '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/'
  import pyspark
  from pyspark import SparkContext
  sc = SparkContext('local[2]')
  </code></pre>