yarn-env.sh 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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 specific 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. # TimeLineReader specific parameters
  88. ###
  89. # Specify the JVM options to be used when starting the TimeLineReader.
  90. # These options will be appended to the options specified as HADOOP_OPTS
  91. # and therefore may override any similar flags set in HADOOP_OPTS
  92. #
  93. # See ResourceManager for some examples
  94. #
  95. #export YARN_TIMELINEREADER_OPTS=
  96. ###
  97. # Web App Proxy Server specifc parameters
  98. ###
  99. # Specify the max heapsize for the web app proxy server. If no units are
  100. # given, it will be assumed to be in MB.
  101. # This value will be overridden by an Xmx setting specified in either
  102. # HADOOP_OPTS and/or YARN_PROXYSERVER_OPTS.
  103. # Default is the same as HADOOP_HEAPSIZE_MAX.
  104. #export YARN_PROXYSERVER_HEAPSIZE=
  105. # Specify the JVM options to be used when starting the proxy server.
  106. # These options will be appended to the options specified as HADOOP_OPTS
  107. # and therefore may override any similar flags set in HADOOP_OPTS
  108. #
  109. # See ResourceManager for some examples
  110. #
  111. #export YARN_PROXYSERVER_OPTS=
  112. ###
  113. # Shared Cache Manager specific parameters
  114. ###
  115. # Specify the JVM options to be used when starting the
  116. # shared cache manager server.
  117. # These options will be appended to the options specified as HADOOP_OPTS
  118. # and therefore may override any similar flags set in HADOOP_OPTS
  119. #
  120. # See ResourceManager for some examples
  121. #
  122. #export YARN_SHAREDCACHEMANAGER_OPTS=
  123. ###
  124. # Router specific parameters
  125. ###
  126. # Specify the JVM options to be used when starting the Router.
  127. # These options will be appended to the options specified as HADOOP_OPTS
  128. # and therefore may override any similar flags set in HADOOP_OPTS
  129. #
  130. # See ResourceManager for some examples
  131. #
  132. #export YARN_ROUTER_OPTS=
  133. ###
  134. # Registry DNS specific parameters
  135. ###
  136. # For privileged registry DNS, user to run as after dropping privileges
  137. # This will replace the hadoop.id.str Java property in secure mode.
  138. # export YARN_REGISTRYDNS_SECURE_USER=yarn
  139. # Supplemental options for privileged registry DNS
  140. # By default, Hadoop uses jsvc which needs to know to launch a
  141. # server jvm.
  142. # export YARN_REGISTRYDNS_SECURE_EXTRA_OPTS="-jvm server"
  143. ###
  144. # YARN Services parameters
  145. ###
  146. # Directory containing service examples
  147. # export YARN_SERVICE_EXAMPLES_DIR = $HADOOP_YARN_HOME/share/hadoop/yarn/yarn-service-examples