yarn-env.sh 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. # e) Enable ResourceManager audit logging
  53. # export YARN_RESOURCEMANAGER_OPTS="-Drm.audit.logger=INFO,RMAUDIT"
  54. #
  55. #
  56. # export YARN_RESOURCEMANAGER_OPTS=
  57. ###
  58. # Node Manager specific parameters
  59. ###
  60. # Specify the max heapsize for the NodeManager. If no units are
  61. # given, it will be assumed to be in MB.
  62. # This value will be overridden by an Xmx setting specified in either
  63. # HADOOP_OPTS and/or YARN_NODEMANAGER_OPTS.
  64. # Default is the same as HADOOP_HEAPSIZE_MAX.
  65. #export YARN_NODEMANAGER_HEAPSIZE=
  66. # Specify the JVM options to be used when starting the NodeManager.
  67. # These options will be appended to the options specified as HADOOP_OPTS
  68. # and therefore may override any similar flags set in HADOOP_OPTS
  69. #
  70. # a) Enable NodeManager audit logging
  71. # export YARN_NODEMANAGER_OPTS="-Dnm.audit.logger=INFO,NMAUDIT"
  72. #
  73. # See ResourceManager for some examples
  74. #
  75. #export YARN_NODEMANAGER_OPTS=
  76. ###
  77. # TimeLineServer specific parameters
  78. ###
  79. # Specify the max heapsize for the timelineserver. If no units are
  80. # given, it will be assumed to be in MB.
  81. # This value will be overridden by an Xmx setting specified in either
  82. # HADOOP_OPTS and/or YARN_TIMELINESERVER_OPTS.
  83. # Default is the same as HADOOP_HEAPSIZE_MAX.
  84. #export YARN_TIMELINE_HEAPSIZE=
  85. # Specify the JVM options to be used when starting the TimeLineServer.
  86. # These options will be appended to the options specified as HADOOP_OPTS
  87. # and therefore may override any similar flags set in HADOOP_OPTS
  88. #
  89. # See ResourceManager for some examples
  90. #
  91. #export YARN_TIMELINESERVER_OPTS=
  92. ###
  93. # TimeLineReader specific parameters
  94. ###
  95. # Specify the JVM options to be used when starting the TimeLineReader.
  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_TIMELINEREADER_OPTS=
  102. ###
  103. # Web App Proxy Server specifc parameters
  104. ###
  105. # Specify the max heapsize for the web app proxy server. If no units are
  106. # given, it will be assumed to be in MB.
  107. # This value will be overridden by an Xmx setting specified in either
  108. # HADOOP_OPTS and/or YARN_PROXYSERVER_OPTS.
  109. # Default is the same as HADOOP_HEAPSIZE_MAX.
  110. #export YARN_PROXYSERVER_HEAPSIZE=
  111. # Specify the JVM options to be used when starting the proxy server.
  112. # These options will be appended to the options specified as HADOOP_OPTS
  113. # and therefore may override any similar flags set in HADOOP_OPTS
  114. #
  115. # See ResourceManager for some examples
  116. #
  117. #export YARN_PROXYSERVER_OPTS=
  118. ###
  119. # Shared Cache Manager specific parameters
  120. ###
  121. # Specify the JVM options to be used when starting the
  122. # shared cache manager server.
  123. # These options will be appended to the options specified as HADOOP_OPTS
  124. # and therefore may override any similar flags set in HADOOP_OPTS
  125. #
  126. # See ResourceManager for some examples
  127. #
  128. #export YARN_SHAREDCACHEMANAGER_OPTS=
  129. ###
  130. # Router specific parameters
  131. ###
  132. # Specify the JVM options to be used when starting the Router.
  133. # These options will be appended to the options specified as HADOOP_OPTS
  134. # and therefore may override any similar flags set in HADOOP_OPTS
  135. #
  136. # See ResourceManager for some examples
  137. #
  138. #export YARN_ROUTER_OPTS=
  139. ###
  140. # Registry DNS specific parameters
  141. # This is deprecated and should be done in hadoop-env.sh
  142. ###
  143. # For privileged registry DNS, user to run as after dropping privileges
  144. # This will replace the hadoop.id.str Java property in secure mode.
  145. # export YARN_REGISTRYDNS_SECURE_USER=yarn
  146. # Supplemental options for privileged registry DNS
  147. # By default, Hadoop uses jsvc which needs to know to launch a
  148. # server jvm.
  149. # export YARN_REGISTRYDNS_SECURE_EXTRA_OPTS="-jvm server"
  150. ###
  151. # YARN Services parameters
  152. ###
  153. # Directory containing service examples
  154. # export YARN_SERVICE_EXAMPLES_DIR = $HADOOP_YARN_HOME/share/hadoop/yarn/yarn-service-examples
  155. # export YARN_CONTAINER_RUNTIME_DOCKER_RUN_OVERRIDE_DISABLE=true