mapred-queues.xml.template 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- This is the template for queue configuration. The format supports nesting of
  17. queues within queues - a feature called hierarchical queues. All queues are
  18. defined within the 'queues' tag which is the top level element for this
  19. XML document. The queue acls configured here for different queues are
  20. checked for authorization only if the configuration property
  21. mapreduce.cluster.acls.enabled is set to true. -->
  22. <queues>
  23. <!-- Configuration for a queue is specified by defining a 'queue' element. -->
  24. <queue>
  25. <!-- Name of a queue. Queue name cannot contain a ':' -->
  26. <name>default</name>
  27. <!-- properties for a queue, typically used by schedulers,
  28. can be defined here -->
  29. <properties>
  30. </properties>
  31. <!-- State of the queue. If running, the queue will accept new jobs.
  32. If stopped, the queue will not accept new jobs. -->
  33. <state>running</state>
  34. <!-- Specifies the ACLs to check for submitting jobs to this queue.
  35. If set to '*', it allows all users to submit jobs to the queue.
  36. If set to ' '(i.e. space), no user will be allowed to do this
  37. operation. The default value for any queue acl is ' '.
  38. For specifying a list of users and groups the format to use is
  39. user1,user2 group1,group2
  40. It is only used if authorization is enabled in Map/Reduce by setting
  41. the configuration property mapreduce.cluster.acls.enabled to true.
  42. Irrespective of this ACL configuration, the user who started the
  43. cluster and cluster administrators configured via
  44. mapreduce.cluster.administrators can do this operation. -->
  45. <acl-submit-job> </acl-submit-job>
  46. <!-- Specifies the ACLs to check for viewing and modifying jobs in this
  47. queue. Modifications include killing jobs, tasks of jobs or changing
  48. priorities.
  49. If set to '*', it allows all users to view, modify jobs of the queue.
  50. If set to ' '(i.e. space), no user will be allowed to do this
  51. operation.
  52. For specifying a list of users and groups the format to use is
  53. user1,user2 group1,group2
  54. It is only used if authorization is enabled in Map/Reduce by setting
  55. the configuration property mapreduce.cluster.acls.enabled to true.
  56. Irrespective of this ACL configuration, the user who started the
  57. cluster and cluster administrators configured via
  58. mapreduce.cluster.administrators can do the above operations on all
  59. the jobs in all the queues. The job owner can do all the above
  60. operations on his/her job irrespective of this ACL configuration. -->
  61. <acl-administer-jobs> </acl-administer-jobs>
  62. </queue>
  63. <!-- Here is a sample of a hierarchical queue configuration
  64. where q2 is a child of q1. In this example, q2 is a leaf level
  65. queue as it has no queues configured within it. Currently, ACLs
  66. and state are only supported for the leaf level queues.
  67. Note also the usage of properties for the queue q2.
  68. <queue>
  69. <name>q1</name>
  70. <queue>
  71. <name>q2</name>
  72. <properties>
  73. <property key="capacity" value="20"/>
  74. <property key="user-limit" value="30"/>
  75. </properties>
  76. </queue>
  77. </queue>
  78. -->
  79. </queues>