mapred-queues.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <!-- This is the template for queue configuration. The format supports nesting of
  14. queues within queues - a feature called hierarchical queues. All queues are
  15. defined within the 'queues' tag which is the top level element for this
  16. XML document.
  17. The 'aclsEnabled' attribute should be set to true, if ACLs should be checked
  18. on queue operations such as submitting jobs, killing jobs etc. -->
  19. <queues aclsEnabled="false">
  20. <!-- Configuration for a queue is specified by defining a 'queue' element. -->
  21. <queue>
  22. <!-- Name of a queue. Queue name cannot contain a ':' -->
  23. <name>default</name>
  24. <!-- properties for a queue, typically used by schedulers,
  25. can be defined here -->
  26. <properties>
  27. </properties>
  28. <!-- State of the queue. If running, the queue will accept new jobs.
  29. If stopped, the queue will not accept new jobs. -->
  30. <state>running</state>
  31. <!-- Specifies the ACLs to check for submitting jobs to this queue.
  32. If set to '*', it allows all users to submit jobs to the queue.
  33. For specifying a list of users and groups the format to use is
  34. user1,user2 group1,group2 -->
  35. <acl-submit-job>*</acl-submit-job>
  36. <!-- Specifies the ACLs to check for modifying jobs in this queue.
  37. Modifications include killing jobs, tasks of jobs or changing
  38. priorities.
  39. If set to '*', it allows all users to submit jobs to the queue.
  40. For specifying a list of users and groups the format to use is
  41. user1,user2 group1,group2 -->
  42. <acl-administer-jobs>*</acl-administer-jobs>
  43. </queue>
  44. <!-- Here is a sample of a hierarchical queue configuration
  45. where q2 is a child of q1. In this example, q2 is a leaf level
  46. queue as it has no queues configured within it. Currently, ACLs
  47. and state are only supported for the leaf level queues.
  48. Note also the usage of properties for the queue q2. -->
  49. <queue>
  50. <name>q1</name>
  51. <queue>
  52. <name>q2</name>
  53. <properties>
  54. <property key="capacity" value="20"/>
  55. <property key="user-limit" value="30"/>
  56. </properties>
  57. </queue>
  58. </queue>
  59. </queues>