hadoop-2.2.0 Multiple Queue resource assignments

Source: Internet
Author: User

Article content Source: http://blog.163.com/yangshaohui_2004/blog/static/618545020144711438505/

In the Yarn-site.xml property:
    • Yarn.scheduler.fair.allow-undeclared-pools
    • If this is true, the new queue can be created when the request is submitted, either because they are specified by the submitter as the application's queue, or because they are placed there by the user's default queue attribute. If this is false, any time the application will be placed in a queue that is not specified in the allocation file, it is placed in the "default" queue instead. The default is true. This property is ignored if the configuration file is given in the queue placement policy.
    • Configuration file format

      The configuration file must be in XML format. The format contains five types of elements:

      • elements in a queue, they represent the queue. Each of these can contain the following properties:
        • Minresources: The minimum resource queue is entitled "X mb,y Vcores" in the form. For single-Resource fairness policies, the Vcores value will be ignored. If the minimum share of a queue is not satisfied, it will be based on any other queues that previously provided the same parent company with available resources. The current resource's fair policy queue is considered unsatisfactory if its memory usage is lower than its minimum memory share. In the case of loss of advantageous resource fairness, a queue is considered unsatisfactory, and if it is used, its relative to the cluster's capacity advantage resources are lower than its minimum share of the resource. If multiple queues are not satisfied in this scenario, the resource enters the queue for the minimum ratio between the resource usage and the minimum value. Note that there may be a queue that is below its minimum and may not immediately get up to the minimum when it submits the application because the jobs that are already running can take advantage of these resources.
        • Maxresources: The largest resource queue is allowed, in the form of "X mb,y vcores". For single-Resource fairness policies, the Vcores value will be ignored. The queue will never be assigned a container, placing it in total usage beyond this limit.
        • Maxrunningapps: The number of applications that are throttled from the queue while running
        • Weight: The cluster is not shared proportionally with other queues. The weights default to 1, and the weight 2 queue should be charged approximately twice times as a resource with the default weight queue.
        • Schedulingpolicy: Sets the scheduling policy for any queue. Allowed values are "FIFO"/"fair"/"DRF" or?? Extend any class Org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.SchedulingPolicy. The default is "fair". If "FIFO" is the application with the previous commit time in favor of the container, but later the submitted application can run concurrently if there are remaining space clusters after the request satisfies the previous application.
        • Aclsubmitapps: A list of users and/or queue groups that can submit applications. Refer to the ACL section below for more information on the format of this list and how the queue works for ACLs.
        • Acladministerapps: Users and/or groups can manage a list of queues. The only administrative action currently is to kill an application. Refer to the ACL section below for more information on the format of this list and how the queue works for ACLs.
        • Minsharepreemptiontimeout: The number of seconds the queue is based on its minimum share is only an attempt to preempt the container to make the resource from the other queue.
      • user Component , which represents the behavior of the user personalization of the set tube. They can contain a property: The limit on the number of specific users that the application running on Maxrunningapps.
      • a Usermaxappsdefault element that sets the default running application limit for any user that is not otherwise specified.
      • a fairsharepreemptiontimeout element , a few seconds after the queue number is its fair share, tries to preempt the container to make the resource from the other queue.
      • a defaultqueueschedulingpolicy element , which is set to the queue default scheduling policy; If the Schedulingpolicy element is overridden for each queue that is specified. The default is "fair".
      • a Queueplacementpolicy element that contains a list of application placement to queue rule elements that tell the scheduler how to enter. Rules are applied because they are listed in the order. The parameters that the rule may require. All rules accept the word "create", which indicates whether the rule can create a new queue. "Create" defaults to true; If set to False, the rule is placed in an application that does not have a queue configured in the configuration file, and we continue to the next rule. The last rule must be one that can never be issued to continue. The valid rules are:
        • Rule: The application is placed in a queue where it is required. If the application requires no queue, that is, it specifies "default", we continue.
        • User: The application is placed into a queue with the name of the user who submits it.
        • Primarygroup: The name of the primary group where the application is placed into a queue, the user who submits it.
        • Secondarygroupexistingqueue: The application is placed into a queue that has a secondary group name with the user who submitted it. The first time in a queue that conforms to the configuration is selected.
        • Default: The application is placed into a queue named "Default".
        • Deny: The application is denied.

        Here is an example configuration file that shows:

      • <?xml version= "1.0"?><allocations>  <queue name= "Sample_queue" >    <minResources> 10000 mb,0vcores</minresources>    <maxresources>90000 mb,0vcores</maxresources>    < maxrunningapps>50</maxrunningapps>    <weight>2.0</weight>    <schedulingPolicy> fair</schedulingpolicy>    <queue name= "Sample_sub_queue" >      <aclsubmitapps>charlie</ aclsubmitapps>      <minresources>5000 mb,0vcores</minresources>    </queue>  </ queue>    <user name= "Sample_user" >    <maxRunningApps>30</maxRunningApps>  </ user>  <userMaxAppsDefault>5</userMaxAppsDefault>    <queuePlacementPolicy>    <rule name= "specified"/>    <rule name= "Primarygroup" create= "false"/> <rule    name= "Default"/ >  </queuePlacementPolicy></allocations>
Note that in order to be compatible with the original Fairscheduler, the "queue" element can be substituted for the element named "Pool".access Control lists (ACLs) for queuesThe queue's access Control List (ACL) allows administrators to control who can take action, especially queues. They are configured with the Aclsubmitapps and Acladministerapps features, which can be set for each queue. Currently only supports applications where administrative actions are killed. Anyone who can manage a queue can also submit a request. These properties require a format value like "User 1, User 2 Group 1, group 2" or "Group 1, Group 2". If its user or group is in the queue's access control list or any ancestor ACL for that queue, the action in a queue will be allowed. Therefore, if queue 2 is an internal queue of 1, and the ACL for queue 1 is user1, and User2 is an ACL in queue 2, then these two users can queue to 2.

The ACL for the root queue is "*", where, because the ACL is passed down by default, that is, everyone can come forward and kill the application from each queue. To start restricting access, modify the root queue's ACL to come up with something more than "*" and so on.

hadoop-2.2.0 Multiple Queue resource assignments

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.