Configuring fair scheduler
YARN provides a plugin policy for scheduler. By default, the capacity scheduler is configured to be used. In this section, we will see how to configure and set up queues for the fair scheduler. By default, a fair scheduler lets you run all the applications but if configured properly, the number of applications that can be run per user and per queue can be limited. Sometimes, it is important to restrict the number of applications per user so that other applications do not wait longer in the queue submitted by other users.
The first configuration change would go in YARN-site.xml to enable YARN to use a fair scheduler. To use the fair scheduler we need to first configure the appropriate scheduler class in YARN-site.xml ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access