January 2019
Beginner to intermediate
154 pages
4h 31m
English
FAIR scheduling is an alternate to FIFO. This policy offers equal resources to all the tasks in round robin fashion. For example, when the first task is assigned the resources, it is only assigned one portion of the resources. The second task will be assigned the next portion of the resources, and so on. One of the advantages is to restrict long-lived applications to consume all the available resources.
You can change the default policy by setting the spark.scheduler.mode property:
spark.conf.set("spark.scheduler.mode","FAIR")
Read now
Unlock full access