Skip to content

Instantly share code, notes, and snippets.

@giwa
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save giwa/df895075c59733e9f76c to your computer and use it in GitHub Desktop.

Select an option

Save giwa/df895075c59733e9f76c to your computer and use it in GitHub Desktop.
$ wget http://www.apache.org/dyn/closer.cgi/spark/spark-1.4.0/spark-1.4.0.tgz
$ tar zxvf spark-1.4.0-bin-hadoop2.6.tgz
$ cd spark-1.4.0-bin-hadoop2.6
$ ./bin/run-example SparkPi
$ ./bin/run-example org.apache.spark.examples.mllib.Correlations
$ ./bin/spark-submit examples/src/main/python/pi.py
$ git clone git://github.com/apache/spark.git
$ cd spark
$ export JAVA_HOME=$(/usr/libexec/java_home)
$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home
$ ./build/mvn -DskipTests clean package
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:25 min
[INFO] Finished at: 2015-06-25T08:34:17+09:00
[INFO] Final Memory: 72M/612M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment