January 2019
Beginner to intermediate
154 pages
4h 31m
English
The Spark application can run in different modes, which are categorized by where and how we want to configure the master and what the executor's resource requirements are.
The master can run on the same local machine, along with executors; it can also run over a specific machine with the provided host and port. If we configure YARN as a Spark resource manager, the master can be managed by YARN:
# Run application locally on 8 cores./bin/spark-submit \ --class org.apache.spark.examples.SparkPi \ --master local[8] \ /path/to/examples.jar \ 100# Run on a Spark standalone cluster in client deploy mode./bin/spark-submit \ --class org.apache.spark.examples.SparkPi \ --master spark://host-ip:7077 \ --executor-memory 20G ...
Read now
Unlock full access