|
| 1 | +<!-- |
| 2 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | + you may not use this file except in compliance with the License. |
| 4 | + You may obtain a copy of the License at |
| 5 | +
|
| 6 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +
|
| 8 | + Unless required by applicable law or agreed to in writing, software |
| 9 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | + See the License for the specific language governing permissions and |
| 12 | + limitations under the License. See accompanying LICENSE file. |
| 13 | +--> |
| 14 | +<configuration> |
| 15 | + |
| 16 | + <property> |
| 17 | + <name>yarn.scheduler.capacity.maximum-applications</name> |
| 18 | + <value>10000</value> |
| 19 | + <description> |
| 20 | + Maximum number of applications that can be pending and running. |
| 21 | + </description> |
| 22 | + </property> |
| 23 | + |
| 24 | + <property> |
| 25 | + <name>yarn.scheduler.capacity.maximum-am-resource-percent</name> |
| 26 | + <value>0.1</value> |
| 27 | + <description> |
| 28 | + Maximum percent of resources in the cluster which can be used to run |
| 29 | + application masters i.e. controls number of concurrent running |
| 30 | + applications. |
| 31 | + </description> |
| 32 | + </property> |
| 33 | + |
| 34 | + <property> |
| 35 | + <name>yarn.scheduler.capacity.resource-calculator</name> |
| 36 | + <value>org.apache.hadoop.yarn.util.resource.DefaultResourceCalculator</value> |
| 37 | + <description> |
| 38 | + The ResourceCalculator implementation to be used to compare |
| 39 | + Resources in the scheduler. |
| 40 | + The default i.e. DefaultResourceCalculator only uses Memory while |
| 41 | + DominantResourceCalculator uses dominant-resource to compare |
| 42 | + multi-dimensional resources such as Memory, CPU etc. |
| 43 | + </description> |
| 44 | + </property> |
| 45 | + |
| 46 | + <property> |
| 47 | + <name>yarn.scheduler.capacity.root.queues</name> |
| 48 | + <value>default</value> |
| 49 | + <description> |
| 50 | + The queues at the this level (root is the root queue). |
| 51 | + </description> |
| 52 | + </property> |
| 53 | + |
| 54 | + <property> |
| 55 | + <name>yarn.scheduler.capacity.root.default.capacity</name> |
| 56 | + <value>100</value> |
| 57 | + <description>Default queue target capacity.</description> |
| 58 | + </property> |
| 59 | + |
| 60 | + <property> |
| 61 | + <name>yarn.scheduler.capacity.root.default.user-limit-factor</name> |
| 62 | + <value>1</value> |
| 63 | + <description> |
| 64 | + Default queue user limit a percentage from 0.0 to 1.0. |
| 65 | + </description> |
| 66 | + </property> |
| 67 | + |
| 68 | + <property> |
| 69 | + <name>yarn.scheduler.capacity.root.default.maximum-capacity</name> |
| 70 | + <value>100</value> |
| 71 | + <description> |
| 72 | + The maximum capacity of the default queue. |
| 73 | + </description> |
| 74 | + </property> |
| 75 | + |
| 76 | + <property> |
| 77 | + <name>yarn.scheduler.capacity.root.default.state</name> |
| 78 | + <value>RUNNING</value> |
| 79 | + <description> |
| 80 | + The state of the default queue. State can be one of RUNNING or STOPPED. |
| 81 | + </description> |
| 82 | + </property> |
| 83 | + |
| 84 | + <property> |
| 85 | + <name>yarn.scheduler.capacity.root.default.acl_submit_applications</name> |
| 86 | + <value>*</value> |
| 87 | + <description> |
| 88 | + The ACL of who can submit jobs to the default queue. |
| 89 | + </description> |
| 90 | + </property> |
| 91 | + |
| 92 | + <property> |
| 93 | + <name>yarn.scheduler.capacity.root.default.acl_administer_queue</name> |
| 94 | + <value>*</value> |
| 95 | + <description> |
| 96 | + The ACL of who can administer jobs on the default queue. |
| 97 | + </description> |
| 98 | + </property> |
| 99 | + |
| 100 | + <property> |
| 101 | + <name>yarn.scheduler.capacity.node-locality-delay</name> |
| 102 | + <value>40</value> |
| 103 | + <description> |
| 104 | + Number of missed scheduling opportunities after which the CapacityScheduler |
| 105 | + attempts to schedule rack-local containers. |
| 106 | + Typically this should be set to number of nodes in the cluster, By default is setting |
| 107 | + approximately number of nodes in one rack which is 40. |
| 108 | + </description> |
| 109 | + </property> |
| 110 | + |
| 111 | +</configuration> |
0 commit comments