Skip to content

Instantly share code, notes, and snippets.

@gbraccialli
Last active December 1, 2016 18:07
Show Gist options
  • Select an option

  • Save gbraccialli/5f580949ae23de6f165ac2b827a4c601 to your computer and use it in GitHub Desktop.

Select an option

Save gbraccialli/5f580949ae23de6f165ac2b827a4c601 to your computer and use it in GitHub Desktop.
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