/hadoop/etc/hadoop/yarn-site.xml

https://github.com/deltaforge/nebu-app-hadoop · XML · 50 lines · 35 code · 2 blank · 13 comment · 0 complexity · 6be252e9e6d32572f24f7ce837ac6866 MD5 · raw file

  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. <configuration>
  14. <property>
  15. <name>yarn.resourcemanager.hostname</name>
  16. <value>$RESOURCEMANAGER$</value>
  17. </property>
  18. <property>
  19. <name>yarn.nodemanager.address</name>
  20. <value>${yarn.nodemanager.hostname}:8034</value>
  21. </property>
  22. <property>
  23. <name>yarn.nodemanager.aux-services</name>
  24. <value>mapreduce_shuffle</value>
  25. </property>
  26. <property>
  27. <name>yarn.nodemanager.local-dirs</name>
  28. <value>/data/hadoop/yarn/local</value>
  29. </property>
  30. <property>
  31. <name>yarn.nodemanager.log-dirs</name>
  32. <value>/data/hadoop/yarn/logs</value>
  33. </property>
  34. <property>
  35. <name>yarn.nodemanager.resource.memory-mb</name>
  36. <value>3072</value>
  37. </property>
  38. <property>
  39. <name>yarn.nodemanager.resource.cpu-vcores</name>
  40. <value>2</value>
  41. </property>
  42. <property>
  43. <name>yarn.scheduler.minimum-allocation-mb</name>
  44. <value>1536</value>
  45. </property>
  46. </configuration>