yarn-site.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <property>
  4. <name>yarn.resourcemanager.hostname</name>
  5. <value>data-hadoop</value>
  6. <description>The hostname of the RM.</description>
  7. </property>
  8. <property>
  9. <name>yarn.nodemanager.resource.memory-mb</name>
  10. <value>1536</value>
  11. <discription>每个节点可用内存,单位MB</discription>
  12. </property>
  13. <property>
  14. <name>yarn.scheduler.minimum-allocation-mb</name>
  15. <value>640</value>
  16. <discription>单个任务可申请最少内存,默认1024MB</discription>
  17. </property>
  18. <property>
  19. <name>yarn.scheduler.maximum-allocation-mb</name>
  20. <value>1536</value>
  21. <discription>单个任务可申请最大内存,默认8192MB</discription>
  22. </property>
  23. <property>
  24. <name>yarn.app.mapreduce.am.resource.mb</name>
  25. <value>1536</value>
  26. <discription>AM能够申请的最大内存,默认值为1536MB</discription>
  27. </property>
  28. <property>
  29. <name>yarn.nodemanager.pmem-check-enabled</name>
  30. <value>false</value>
  31. </property>
  32. <property>
  33. <name>yarn.nodemanager.vmem-check-enabled</name>
  34. <value>false</value>
  35. </property>
  36. <!--property>
  37. <name>yarn.resourcemanager.scheduler.class</name>
  38. <value>org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler</value>
  39. </property>
  40. <property>
  41. <name>yarn.resourcemanager.address</name>
  42. <value>8032</value>
  43. </property>
  44. <property>
  45. <name>yarn.resourcemanager.scheduler.address</name>
  46. <value>8030</value>
  47. </property>
  48. <property>
  49. <name>yarn.resourcemanager.resource-tracker.address</name>
  50. <value>8031</value>
  51. </property>
  52. <property>
  53. <name>yarn.resourcemanager.admin.address</name>
  54. <value>8033</value>
  55. </property>
  56. <property>
  57. <name>yarn.resourcemanager.webapp.address</name>
  58. <value>8088</value>
  59. </property>
  60. <property>
  61. <name>yarn.nodemanager.localizer.address</name>
  62. <value>8040</value>
  63. </property>
  64. <property>
  65. <name>yarn.nodemanager.address</name>
  66. <value>8041</value>
  67. </property>
  68. <property>
  69. <name>yarn.nodemanager.webapp.address</name>
  70. <value>8042</value>
  71. </property>
  72. <property>
  73. <name>mapreduce.jobhistory.address</name>
  74. <value>10020</value>
  75. </property>
  76. <property>
  77. <name>mapreduce.jobhistory.webapp.address</name>
  78. <value>19888</value>
  79. </property>
  80. <property>
  81. <name>yarn.nodemanager.aux-services</name>
  82. <value>mapreduce_shuffle</value>
  83. </property>
  84. <property>
  85. <name>yarn.nodemanager.aux-services.mapreduce_shuffle.class</name>
  86. <value>org.apache.hadoop.mapred.ShuffleHandler</value>
  87. </property>
  88. <property>
  89. <name>yarn.resourcemanager.scheduler.class</name>
  90. <value>org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler</value>
  91. </property>
  92. <property>
  93. <name>yarn.scheduler.fair.preemption</name>
  94. <value>true</value>
  95. </property>
  96. <property>
  97. <name>yarn.scheduler.fair.preemption.cluster-utilization-threshold</name>
  98. <value>1.0</value>
  99. </property-->
  100. <property>
  101. <name>yarn.resourcemanager.am.max-attempts</name>
  102. <value>10000</value>
  103. </property>
  104. </configuration>