@@ -591,4 +591,127 @@ data:
591591 <aclAdministerApps>*</aclAdministerApps>
592592 </queue>
593593 </queue>
594- </allocations>
594+ </allocations>
595+ capacity-scheduler.xml : |
596+ <!--
597+ Licensed under the Apache License, Version 2.0 (the "License");
598+ you may not use this file except in compliance with the License.
599+ You may obtain a copy of the License at
600+
601+ http://www.apache.org/licenses/LICENSE-2.0
602+
603+ Unless required by applicable law or agreed to in writing, software
604+ distributed under the License is distributed on an "AS IS" BASIS,
605+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
606+ See the License for the specific language governing permissions and
607+ limitations under the License. See accompanying LICENSE file.
608+ -->
609+ <configuration>
610+
611+ <property>
612+ <name>yarn.scheduler.capacity.maximum-applications</name>
613+ <value>4</value>
614+ <description>
615+ Maximum number of applications that can be pending and running.
616+ </description>
617+ </property>
618+
619+ <property>
620+ <name>yarn.scheduler.capacity.maximum-am-resource-percent</name>
621+ <value>0.5</value>
622+ <description>
623+ Maximum percent of resources in the cluster which can be used to run
624+ application masters i.e. controls number of concurrent running
625+ applications.
626+ </description>
627+ </property>
628+
629+ <property>
630+ <name>yarn.scheduler.capacity.resource-calculator</name>
631+ <value>org.apache.hadoop.yarn.util.resource.DefaultResourceCalculator</value>
632+ <description>
633+ The ResourceCalculator implementation to be used to compare
634+ Resources in the scheduler.
635+ The default i.e. DefaultResourceCalculator only uses Memory while
636+ DominantResourceCalculator uses dominant-resource to compare
637+ multi-dimensional resources such as Memory, CPU etc.
638+ </description>
639+ </property>
640+
641+ <property>
642+ <name>yarn.scheduler.capacity.root.queues</name>
643+ <value>default</value>
644+ <description>
645+ The queues at the this level (root is the root queue).
646+ </description>
647+ </property>
648+
649+ <property>
650+ <name>yarn.scheduler.capacity.root.default.capacity</name>
651+ <value>100</value>
652+ <description>Default queue target capacity.</description>
653+ </property>
654+
655+ <property>
656+ <name>yarn.scheduler.capacity.root.default.user-limit-factor</name>
657+ <value>1</value>
658+ <description>
659+ Default queue user limit a percentage from 0.0 to 1.0.
660+ </description>
661+ </property>
662+
663+ <property>
664+ <name>yarn.scheduler.capacity.root.default.maximum-capacity</name>
665+ <value>100</value>
666+ <description>
667+ The maximum capacity of the default queue.
668+ </description>
669+ </property>
670+
671+ <property>
672+ <name>yarn.scheduler.capacity.root.default.state</name>
673+ <value>RUNNING</value>
674+ <description>
675+ The state of the default queue. State can be one of RUNNING or STOPPED.
676+ </description>
677+ </property>
678+
679+ <property>
680+ <name>yarn.scheduler.capacity.root.default.acl_submit_applications</name>
681+ <value>*</value>
682+ <description>
683+ The ACL of who can submit jobs to the default queue.
684+ </description>
685+ </property>
686+
687+ <property>
688+ <name>yarn.scheduler.capacity.root.default.acl_administer_queue</name>
689+ <value>*</value>
690+ <description>
691+ The ACL of who can administer jobs on the default queue.
692+ </description>
693+ </property>
694+
695+ <property>
696+ <name>yarn.scheduler.capacity.node-locality-delay</name>
697+ <value>40</value>
698+ <description>
699+ Number of missed scheduling opportunities after which the CapacityScheduler
700+ attempts to schedule rack-local containers.
701+ Typically this should be set to number of nodes in the cluster, By default is setting
702+ approximately number of nodes in one rack which is 40.
703+ </description>
704+ </property>
705+
706+ <property>
707+ <name>yarn.scheduler.capacity.queue-mappings-override.enable</name>
708+ <value>false</value>
709+ <description>
710+ If a queue mapping is present, will it override the value specified
711+ by the user? This can be used by administrators to place jobs in queues
712+ that are different than the one specified by the user.
713+ The default is false.
714+ </description>
715+ </property>
716+
717+ </configuration>
0 commit comments