Last active
May 24, 2017 00:02
-
-
Save jeongho/33db9a397bae2c4dbc146fc633fb586c to your computer and use it in GitHub Desktop.
Spark pi job
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 SPARK_CLASSPATH=$(hadoop classpath) | |
export SPARK_HOME=/opt/cloudera/parcels/CDH/lib/spark | |
spark-submit --class org.apache.spark.examples.SparkPi \ | |
--master yarn \ | |
--deploy-mode client \ | |
$SPARK_HOME/lib/spark-examples.jar 10 | |
spark-submit --class org.apache.spark.examples.SparkPi \ | |
--master yarn \ | |
--deploy-mode cluster \ | |
$SPARK_HOME/lib/spark-examples.jar 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment