This is part one of a learning series of pyspark, which is a python binding to the spark program written in Scala.
The installation is pretty simple. These steps were done on Mac OS Mavericks but should work for Linux too. Here are the steps for the installation:
1. Download the Binaries:
Spark : http://spark.apache.org/downloads.htmlScala : http://www.scala-lang.org/download/Dont use Latest Version of Scala, Use Scala 2.10.x
2. Add these lines to your .bash_profile:
export SCALA_HOME=your_path_to_scalaexport SPARK_HOME=your_path_to_spark
3. Build Spark (This will take time):
brew install sbtcd $SPARK_HOMEsbt/sbt assembly
4. Start the Pyspark Shell:
And Voila. You are running pyspark on your Machine
To check that everything is properly installed, Lets run a simple program:
test = sc.parallelize([1,2,3])test.count()
This should return 3.
Now Just Run Hadoop On your Machine and then run pyspark Using:
Link to original article: Learning pyspark – Installation – Part 1