capacity-scheduler.xml 4.3 KB

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