Skip to content

Instantly share code, notes, and snippets.

@bibiboot
Last active July 20, 2016 19:30
Show Gist options
  • Save bibiboot/a05cf8ef1882f9dd0aed7cfba19ae172 to your computer and use it in GitHub Desktop.
Save bibiboot/a05cf8ef1882f9dd0aed7cfba19ae172 to your computer and use it in GitHub Desktop.
Spark : Java hello world

Run example

Examples

cd $SPARK_HOME
ls examples/src/main/java/org/apache/spark/examples/

Run example using bash script

./bin/run-example SparkPi

Run example using command line

/Users/drehman/Apps/spark-1.6.2-bin-hadoop2.6/bin/spark-submit --master local[*] --class org.apache.spark.examples.SparkPi /Users/drehman/Apps/spark-1.6.2-bin-hadoop2.6/lib/spark-examples-1.6.2-hadoop2.6.0.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment