Last active
December 1, 2016 18:07
-
-
Save gbraccialli/5f580949ae23de6f165ac2b827a4c601 to your computer and use it in GitHub Desktop.
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 /usr/hdp/current/spark-client | |
| bin/spark-sql --master yarn-client --num-executors 6 --driver-memory 4096m --executor-memory 4096m --executor-cores 6 --queue=spark | |
| bin/spark-submit --class org.apache.spark.examples.SparkPi --master yarn-cluster --num-executors 3 --driver-memory 512m --executor-memory 512m --executor-cores 1 lib/spark-examples*.jar 10 | |
| spark-shell --master yarn-client | |
| val textFile = sc.textFile("/yourfile.txt") | |
| textFile.count() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment