capacity-scheduler.xml.template 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?xml version="1.0"?>
  2. <!-- This is the configuration file for the resource manager in Hadoop. -->
  3. <!-- You can configure various scheduling parameters related to queues. -->
  4. <!-- The properties for a queue follow a naming convention,such as, -->
  5. <!-- mapred.capacity-scheduler.queue.<queue-name>.property-name. -->
  6. <configuration>
  7. <property>
  8. <name>mapred.capacity-scheduler.queue.default.guaranteed-capacity</name>
  9. <value>100</value>
  10. <description>Percentage of the number of slots in the cluster that are
  11. guaranteed to be available for jobs in this queue.
  12. </description>
  13. </property>
  14. <property>
  15. <name>mapred.capacity-scheduler.queue.default.reclaim-time-limit</name>
  16. <value>300</value>
  17. <description>The amount of time, in seconds, before which
  18. resources distributed to other queues will be reclaimed.
  19. </description>
  20. </property>
  21. <property>
  22. <name>mapred.capacity-scheduler.queue.default.supports-priority</name>
  23. <value>false</value>
  24. <description>If true, priorities of jobs will be taken into
  25. account in scheduling decisions.
  26. </description>
  27. </property>
  28. <property>
  29. <name>mapred.capacity-scheduler.queue.default.minimum-user-limit-percent</name>
  30. <value>100</value>
  31. <description> Each queue enforces a limit on the percentage of resources
  32. allocated to a user at any given time, if there is competition for them.
  33. This user limit can vary between a minimum and maximum value. The former
  34. depends on the number of users who have submitted jobs, and the latter is
  35. set to this property value. For example, suppose the value of this
  36. property is 25. If two users have submitted jobs to a queue, no single
  37. user can use more than 50% of the queue resources. If a third user submits
  38. a job, no single user can use more than 33% of the queue resources. With 4
  39. or more users, no user can use more than 25% of the queue's resources. A
  40. value of 100 implies no user limits are imposed.
  41. </description>
  42. </property>
  43. <property>
  44. <name>mapred.capacity-scheduler.queue.default.maximum-initialized-jobs-per-user</name>
  45. <value>2</value>
  46. <description>The maximum number of jobs to be pre-initialized for a user
  47. of the job queue.
  48. </description>
  49. </property>
  50. <!-- The default configuration settings for the capacity task scheduler -->
  51. <!-- The default values would be applied to all the queues which don't have -->
  52. <!-- the appropriate property for the particular queue -->
  53. <property>
  54. <name>mapred.capacity-scheduler.default-reclaim-time-limit</name>
  55. <value>300</value>
  56. <description>The amount of time, in seconds, before which
  57. resources distributed to other queues will be reclaimed by default
  58. in a job queue.
  59. </description>
  60. </property>
  61. <property>
  62. <name>mapred.capacity-scheduler.default-supports-priority</name>
  63. <value>false</value>
  64. <description>If true, priorities of jobs will be taken into
  65. account in scheduling decisions by default in a job queue.
  66. </description>
  67. </property>
  68. <property>
  69. <name>mapred.capacity-scheduler.default-minimum-user-limit-percent</name>
  70. <value>100</value>
  71. <description>The percentage of the resources limited to a particular user
  72. for the job queue at any given point of time by default.
  73. </description>
  74. </property>
  75. <property>
  76. <name>mapred.capacity-scheduler.default-maximum-initialized-jobs-per-user</name>
  77. <value>2</value>
  78. <description>The maximum number of jobs to be pre-initialized for a user
  79. of the job queue.
  80. </description>
  81. </property>
  82. <!-- Capacity scheduler Job Initialization configuration parameters -->
  83. <property>
  84. <name>mapred.capacity-scheduler.init-poll-interval</name>
  85. <value>5000</value>
  86. <description>The amount of time in miliseconds which is used to poll
  87. the job queues for jobs to initialize.
  88. </description>
  89. </property>
  90. <property>
  91. <name>mapred.capacity-scheduler.init-worker-threads</name>
  92. <value>5</value>
  93. <description>Number of worker threads which would be used by
  94. Initialization poller to initialize jobs in a set of queue.
  95. If number mentioned in property is equal to number of job queues
  96. then a single thread would initialize jobs in a queue. If lesser
  97. then a thread would get a set of queues assigned. If the number
  98. is greater then number of threads would be equal to number of
  99. job queues.
  100. </description>
  101. </property>
  102. </configuration>