Setting global maximum application priority
You can use Priority Scheduling to run YARN applications at higher priority, regardless of other applications that are already running in the cluster. YARN allocates more resources to applications running at a higher priority over those running at a lower priority. Priority Scheduling enables you to set an application's priority both at the time of submission and dynamically at run time.
Priority Scheduling works only with the FIFO (First In, First Out) ordering policy. FIFO is the default Capacity Scheduler ordering policy.
To set appliation priority (yarn.cluster.max-application-priority), perform the following steps:
- In Cloudera Manager, select the YARN service.
- Click Configuration.
-
Search for
yarn-site.xml
. -
Under
YARN Service Advanced Configuration Snippet (Safety Valve) for yarn-site.xml
, add the yarn.cluster.max-application-priority parameter and the value you need. - Click Save Changes.
- Restart the YARN service.