Last active
August 29, 2015 14:23
-
-
Save giwa/df895075c59733e9f76c to your computer and use it in GitHub Desktop.
Run Apache Spark on Mac ref: http://qiita.com/giwa/items/d701ad1f9bda42654093
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cd spark-1.4.0-bin-hadoop2.6 | |
| $ ./bin/run-example SparkPi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ./bin/run-example org.apache.spark.examples.mllib.Correlations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ./bin/spark-submit examples/src/main/python/pi.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git clone git://github.com/apache/spark.git | |
| $ cd spark |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ export JAVA_HOME=$(/usr/libexec/java_home) | |
| $ echo $JAVA_HOME | |
| /Library/Java/JavaVirtualMachines/jdk1.7.0_72.jdk/Contents/Home |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ./build/mvn -DskipTests clean package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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