Specifying Fair Scheduler Configuration Properties in yarn-site.xml

Lists the properties in the yarn-site.xml file for Fair Scheduler.

The yarn-site.xml file contains the following parameters that determine scheduler-wide options.
yarn.scheduler.fair.allocation.file
Default Value: fair-scheduler.xml
Description: Specifies the path to the allocation file. If a relative path is given, the file is searched for on the classpath.
yarn.scheduler.fair.user-as-default-queue
Default Value: true
Description: Determines whether to use the username associated with the allocation file as the default queue name, if a queue name is not specified.
NOTE
If a queue placement policy is given in the allocations file, this property is ignored.
yarn.scheduler.fair.preemption
Default Value: false
Description: Indicates whether to use preemption.
NOTE
Do not use preemption when FairScheduler DominantResourceFairness is in use and node labels are present.
yarn.scheduler.fair.sizebasedweight
Default Value: false
Description: Indicates whether to assign shares to individual applications based on their size, rather than providing an equal share to all applications regardless of size. When set to true, applications are weighted by (ln 1 + <application's total requested memory>)/ ln 2.
yarn.scheduler.fair.assignmultiple
Default Value: false
Description: Indicates whether to allow multiple container assignments in one heartbeat.
yarn.scheduler.fair.resources-based-on-labels-enabled
Default Value: false
Description: Indicates whether to allow container allocation on all nodes by recomputing fair shares based on labels.
yarn.scheduler.fair.preemption.cluster-utilization-threshold.based-on-labels-enabled
Default Value: false
Description: Indicates whether to enable/disable preemption of the threshold per-label.