yarn-env.sh 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. ##
  17. ## THIS FILE ACTS AS AN OVERRIDE FOR hadoop-env.sh FOR ALL
  18. ## WORK DONE BY THE yarn AND RELATED COMMANDS.
  19. ##
  20. ## Precedence rules:
  21. ##
  22. ## yarn-env.sh > hadoop-env.sh > hard-coded defaults
  23. ##
  24. ## YARN_xyz > HADOOP_xyz > hard-coded defaults
  25. ##
  26. ###
  27. # Resource Manager specific parameters
  28. ###
  29. # Specify the max heapsize for the ResourceManager. If no units are
  30. # given, it will be assumed to be in MB.
  31. # This value will be overridden by an Xmx setting specified in either
  32. # HADOOP_OPTS and/or YARN_RESOURCEMANAGER_OPTS.
  33. # Default is the same as HADOOP_HEAPSIZE_MAX
  34. #export YARN_RESOURCEMANAGER_HEAPSIZE=
  35. # Specify the JVM options to be used when starting the ResourceManager.
  36. # These options will be appended to the options specified as HADOOP_OPTS
  37. # and therefore may override any similar flags set in HADOOP_OPTS
  38. #
  39. # Examples for a Sun/Oracle JDK:
  40. # a) override the appsummary log file:
  41. # export YARN_RESOURCEMANAGER_OPTS="-Dyarn.server.resourcemanager.appsummary.log.file=rm-appsummary.log -Dyarn.server.resourcemanager.appsummary.logger=INFO,RMSUMMARY"
  42. #
  43. # b) Set JMX options
  44. # export YARN_RESOURCEMANAGER_OPTS="-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=1026"
  45. #
  46. # c) Set garbage collection logs from hadoop-env.sh
  47. # export YARN_RESOURCE_MANAGER_OPTS="${HADOOP_GC_SETTINGS} -Xloggc:${HADOOP_LOG_DIR}/gc-rm.log-$(date +'%Y%m%d%H%M')"
  48. #
  49. # d) ... or set them directly
  50. # export YARN_RESOURCEMANAGER_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -Xloggc:${HADOOP_LOG_DIR}/gc-rm.log-$(date +'%Y%m%d%H%M')"
  51. #
  52. #
  53. # export YARN_RESOURCEMANAGER_OPTS=
  54. ###
  55. # Node Manager specific parameters
  56. ###
  57. # Specify the max heapsize for the NodeManager. If no units are
  58. # given, it will be assumed to be in MB.
  59. # This value will be overridden by an Xmx setting specified in either
  60. # HADOOP_OPTS and/or YARN_NODEMANAGER_OPTS.
  61. # Default is the same as HADOOP_HEAPSIZE_MAX.
  62. #export YARN_NODEMANAGER_HEAPSIZE=
  63. # Specify the JVM options to be used when starting the NodeManager.
  64. # These options will be appended to the options specified as HADOOP_OPTS
  65. # and therefore may override any similar flags set in HADOOP_OPTS
  66. #
  67. # See ResourceManager for some examples
  68. #
  69. #export YARN_NODEMANAGER_OPTS=
  70. ###
  71. # TimeLineServer specifc parameters
  72. ###
  73. # Specify the max heapsize for the timelineserver. If no units are
  74. # given, it will be assumed to be in MB.
  75. # This value will be overridden by an Xmx setting specified in either
  76. # HADOOP_OPTS and/or YARN_TIMELINESERVER_OPTS.
  77. # Default is the same as HADOOP_HEAPSIZE_MAX.
  78. #export YARN_TIMELINE_HEAPSIZE=
  79. # Specify the JVM options to be used when starting the TimeLineServer.
  80. # These options will be appended to the options specified as HADOOP_OPTS
  81. # and therefore may override any similar flags set in HADOOP_OPTS
  82. #
  83. # See ResourceManager for some examples
  84. #
  85. #export YARN_TIMELINESERVER_OPTS=
  86. ###
  87. # Web App Proxy Server specifc parameters
  88. ###
  89. # Specify the max heapsize for the web app proxy server. If no units are
  90. # given, it will be assumed to be in MB.
  91. # This value will be overridden by an Xmx setting specified in either
  92. # HADOOP_OPTS and/or YARN_PROXYSERVER_OPTS.
  93. # Default is the same as HADOOP_HEAPSIZE_MAX.
  94. #export YARN_PROXYSERVER_HEAPSIZE=
  95. # Specify the JVM options to be used when starting the proxy server.
  96. # These options will be appended to the options specified as HADOOP_OPTS
  97. # and therefore may override any similar flags set in HADOOP_OPTS
  98. #
  99. # See ResourceManager for some examples
  100. #
  101. #export YARN_PROXYSERVER_OPTS=
  102. ###
  103. # Shared Cache Manager specific parameters
  104. ###
  105. # Specify the JVM options to be used when starting the
  106. # shared cache manager server.
  107. # These options will be appended to the options specified as HADOOP_OPTS
  108. # and therefore may override any similar flags set in HADOOP_OPTS
  109. #
  110. # See ResourceManager for some examples
  111. #
  112. #export YARN_SHAREDCACHEMANAGER_OPTS=