2014-09-15 17:09:45 -04:00
|
|
|
#
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 07:07:10 -04:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership.
|
|
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
# (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2014-08-19 08:11:17 -04:00
|
|
|
##
|
|
|
|
## THIS FILE ACTS AS AN OVERRIDE FOR hadoop-env.sh FOR ALL
|
|
|
|
## WORK DONE BY THE yarn AND RELATED COMMANDS.
|
|
|
|
##
|
|
|
|
## Precedence rules:
|
|
|
|
##
|
|
|
|
## yarn-env.sh > hadoop-env.sh > hard-coded defaults
|
|
|
|
##
|
|
|
|
## YARN_xyz > HADOOP_xyz > hard-coded defaults
|
|
|
|
##
|
|
|
|
|
|
|
|
###
|
2014-09-15 17:09:45 -04:00
|
|
|
# YARN-specific overrides for generic settings
|
2014-08-19 08:11:17 -04:00
|
|
|
###
|
|
|
|
|
2014-09-15 17:09:45 -04:00
|
|
|
# By default, YARN will use HADOOP_LOG_DIR for YARN logging. Specify a custom
|
|
|
|
# log directory for YARN things here:
|
2014-12-01 19:21:20 -05:00
|
|
|
# Java properties: hadoop.log.dir, yarn.log.dir
|
2014-09-15 17:09:45 -04:00
|
|
|
# export YARN_LOG_DIR="${HADOOP_LOG_DIR}"
|
2014-08-19 08:11:17 -04:00
|
|
|
|
2014-09-15 17:09:45 -04:00
|
|
|
# By default, YARN will use the value of HADOOP_LOGFILE as the 'fallback' log
|
|
|
|
# file # when log4j settings are not defined. Specify a custom YARN log file
|
|
|
|
# here:
|
2014-12-01 19:21:20 -05:00
|
|
|
# Java properties: hadoop.log.file, yarn.log.file
|
2014-09-15 17:09:45 -04:00
|
|
|
# export YARN_LOGFILE=${HADOOP_LOGFILE}
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 07:07:10 -04:00
|
|
|
|
2014-09-15 17:09:45 -04:00
|
|
|
#Override the log4j settings for all YARN apps By default, YARN will use
|
|
|
|
# HADOOP_ROOT_LOGGER.
|
2014-12-01 19:21:20 -05:00
|
|
|
# Java properties: hadoop.root.logger, yarn.root.logger
|
2014-09-15 17:09:45 -04:00
|
|
|
# export YARN_ROOT_LOGGER=${HADOOP_ROOT_LOGGER}
|
2014-08-19 08:11:17 -04:00
|
|
|
|
|
|
|
###
|
2013-07-19 15:23:12 -04:00
|
|
|
# Resource Manager specific parameters
|
2014-08-19 08:11:17 -04:00
|
|
|
###
|
2013-07-19 15:23:12 -04:00
|
|
|
|
2014-08-19 08:11:17 -04:00
|
|
|
# Specify the max heapsize for the ResourceManager using a numerical value
|
2013-07-19 15:23:12 -04:00
|
|
|
# in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set
|
|
|
|
# the value to 1000.
|
2014-08-19 08:11:17 -04:00
|
|
|
# This value will be overridden by an Xmx setting specified in either YARN_OPTS,
|
|
|
|
# HADOOP_OPTS, and/or YARN_RESOURCEMANAGER_OPTS.
|
2014-12-01 19:21:20 -05:00
|
|
|
# If not specified, the default value will be picked from either HADOOP_HEAPSIZE
|
|
|
|
# or the built-in default.
|
2014-08-19 08:11:17 -04:00
|
|
|
#
|
2013-07-19 15:23:12 -04:00
|
|
|
#export YARN_RESOURCEMANAGER_HEAPSIZE=1000
|
|
|
|
|
|
|
|
# Specify the JVM options to be used when starting the ResourceManager.
|
|
|
|
# These options will be appended to the options specified as YARN_OPTS
|
|
|
|
# and therefore may override any similar flags set in YARN_OPTS
|
2014-08-19 08:11:17 -04:00
|
|
|
#
|
|
|
|
# Examples for a Sun/Oracle JDK:
|
|
|
|
# a) override the appsummary log file:
|
|
|
|
# export YARN_RESOURCEMANAGER_OPTS="-Dyarn.server.resourcemanager.appsummary.log.file=rm-appsummary.log -Dyarn.server.resourcemanager.appsummary.logger=INFO,RMSUMMARY"
|
|
|
|
#
|
|
|
|
# b) Set JMX options
|
|
|
|
# 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"
|
|
|
|
#
|
|
|
|
# c) Set garbage collection logs from hadoop-env.sh
|
|
|
|
# export YARN_RESOURCE_MANAGER_OPTS="${HADOOP_GC_SETTINGS} -Xloggc:${HADOOP_LOG_DIR}/gc-rm.log-$(date +'%Y%m%d%H%M')"
|
|
|
|
#
|
|
|
|
# d) ... or set them directly
|
|
|
|
# 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')"
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# export YARN_RESOURCEMANAGER_OPTS=
|
2013-07-19 15:23:12 -04:00
|
|
|
|
2014-08-19 08:11:17 -04:00
|
|
|
###
|
2013-07-19 15:23:12 -04:00
|
|
|
# Node Manager specific parameters
|
2014-08-19 08:11:17 -04:00
|
|
|
###
|
2013-07-19 15:23:12 -04:00
|
|
|
|
|
|
|
# Specify the max Heapsize for the NodeManager using a numerical value
|
|
|
|
# in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set
|
|
|
|
# the value to 1000.
|
2014-08-19 08:11:17 -04:00
|
|
|
# This value will be overridden by an Xmx setting specified in either YARN_OPTS,
|
|
|
|
# HADOOP_OPTS, and/or YARN_NODEMANAGER_OPTS.
|
2014-12-01 19:21:20 -05:00
|
|
|
# If not specified, the default value will be picked from either HADOOP_HEAPSIZE
|
|
|
|
# or the built-in default.
|
2014-08-19 08:11:17 -04:00
|
|
|
#
|
2013-07-19 15:23:12 -04:00
|
|
|
#export YARN_NODEMANAGER_HEAPSIZE=1000
|
|
|
|
|
|
|
|
# Specify the JVM options to be used when starting the NodeManager.
|
|
|
|
# These options will be appended to the options specified as YARN_OPTS
|
|
|
|
# and therefore may override any similar flags set in YARN_OPTS
|
2014-08-19 08:11:17 -04:00
|
|
|
#
|
|
|
|
# See ResourceManager for some examples
|
|
|
|
#
|
2013-07-19 15:23:12 -04:00
|
|
|
#export YARN_NODEMANAGER_OPTS=
|
|
|
|
|
2014-08-19 08:11:17 -04:00
|
|
|
###
|
|
|
|
# TimeLineServer specifc parameters
|
|
|
|
###
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 07:07:10 -04:00
|
|
|
|
2014-08-19 08:11:17 -04:00
|
|
|
# Specify the max Heapsize for the timeline server using a numerical value
|
|
|
|
# in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set
|
|
|
|
# the value to 1000.
|
|
|
|
# This value will be overridden by an Xmx setting specified in either YARN_OPTS,
|
|
|
|
# HADOOP_OPTS, and/or YARN_TIMELINESERVER_OPTS.
|
2014-12-01 19:21:20 -05:00
|
|
|
# If not specified, the default value will be picked from either HADOOP_HEAPSIZE
|
|
|
|
# or the built-in default.
|
2014-08-19 08:11:17 -04:00
|
|
|
#
|
|
|
|
#export YARN_TIMELINESERVER_HEAPSIZE=1000
|
|
|
|
|
|
|
|
# Specify the JVM options to be used when starting the TimeLineServer.
|
|
|
|
# These options will be appended to the options specified as YARN_OPTS
|
|
|
|
# and therefore may override any similar flags set in YARN_OPTS
|
|
|
|
#
|
|
|
|
# See ResourceManager for some examples
|
|
|
|
#
|
|
|
|
#export YARN_TIMELINESERVER_OPTS=
|
MAPREDUCE-279. MapReduce 2.0. Merging MR-279 branch into trunk. Contributed by Arun C Murthy, Christopher Douglas, Devaraj Das, Greg Roelofs, Jeffrey Naisbitt, Josh Wills, Jonathan Eagles, Krishna Ramachandran, Luke Lu, Mahadev Konar, Robert Evans, Sharad Agarwal, Siddharth Seth, Thomas Graves, and Vinod Kumar Vavilapalli.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1159166 13f79535-47bb-0310-9956-ffa450edef68
2011-08-18 07:07:10 -04:00
|
|
|
|
2014-09-15 17:09:45 -04:00
|
|
|
###
|
|
|
|
# Web App Proxy Server specifc parameters
|
|
|
|
###
|
|
|
|
|
|
|
|
# Specify the max Heapsize for the proxy server using a numerical value
|
|
|
|
# in the scale of MB. For example, to specify an jvm option of -Xmx1000m, set
|
|
|
|
# the value to 1000.
|
|
|
|
# This value will be overridden by an Xmx setting specified in either YARN_OPTS,
|
|
|
|
# HADOOP_OPTS, and/or YARN_PROXYSERVER_OPTS.
|
2014-12-01 19:21:20 -05:00
|
|
|
# If not specified, the default value will be picked from either HADOOP_HEAPSIZE
|
|
|
|
# or the built-in default.
|
2014-09-15 17:09:45 -04:00
|
|
|
#
|
|
|
|
#export YARN_PROXYSERVER_HEAPSIZE=1000
|
|
|
|
|
|
|
|
# Specify the JVM options to be used when starting the proxy server.
|
|
|
|
# These options will be appended to the options specified as YARN_OPTS
|
|
|
|
# and therefore may override any similar flags set in YARN_OPTS
|
|
|
|
#
|
|
|
|
# See ResourceManager for some examples
|
|
|
|
#
|
|
|
|
#export YARN_PROXYSERVER_OPTS=
|
|
|
|
|
|
|
|
|