January 2019
Beginner to intermediate
154 pages
4h 31m
English
Local mode runs both driver and executors on a single machine. In this mode, the partitions are processed by multiple threads in parallel. The number of threads can be controlled by the user while submitting the job. This mode is useful in the learning phase but, not recommended for production applications, as you only use a single machine to process the data.
The following shows how you can submit a job in local mode with spark-submit:
$ spark-submit --master local example.py
Read now
Unlock full access