merge -r 1394608:1394609 from trunk. FIXES: MAPREDUCE-4712
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1395726 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
35ee354a81
commit
279d3cc66a
|
@ -26,6 +26,9 @@ Release 2.0.3-alpha - Unreleased
|
||||||
|
|
||||||
MAPREDUCE-4681. Fix unit tests broken by HDFS-3910. (acmurthy)
|
MAPREDUCE-4681. Fix unit tests broken by HDFS-3910. (acmurthy)
|
||||||
|
|
||||||
|
MAPREDUCE-4712. mr-jobhistory-daemon.sh doesn't accept --config
|
||||||
|
(Vinod Kumar Vavilapalli via tgraves)
|
||||||
|
|
||||||
Release 2.0.2-alpha - 2012-09-07
|
Release 2.0.2-alpha - 2012-09-07
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -39,11 +39,12 @@ else
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# some more specific variables
|
# Only set locally to use in HADOOP_OPTS. No need to export.
|
||||||
export HADOOP_MAPRED_LOG_DIR=${HADOOP_MAPRED_LOG_DIR:-${HADOOP_MAPRED_HOME}/logs}
|
# The following defaults are useful when somebody directly invokes bin/mapred.
|
||||||
export HADOOP_MAPRED_LOGFILE=${HADOOP_MAPRED_LOGFILE:-hadoop.log}
|
HADOOP_MAPRED_LOG_DIR=${HADOOP_MAPRED_LOG_DIR:-${HADOOP_MAPRED_HOME}/logs}
|
||||||
|
HADOOP_MAPRED_LOGFILE=${HADOOP_MAPRED_LOGFILE:-hadoop.log}
|
||||||
HADOOP_MAPRED_ROOT_LOGGER=${HADOOP_MAPRED_ROOT_LOGGER:-INFO,console}
|
HADOOP_MAPRED_ROOT_LOGGER=${HADOOP_MAPRED_ROOT_LOGGER:-INFO,console}
|
||||||
|
|
||||||
HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.log.dir=$HADOOP_MAPRED_LOG_DIR"
|
HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.log.dir=$HADOOP_MAPRED_LOG_DIR"
|
||||||
HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.log.file=$HADOOP_MAPRED_LOGFILE"
|
HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.log.file=$HADOOP_MAPRED_LOGFILE"
|
||||||
export HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.root.logger=${HADOOP_MAPRED_ROOT_LOGGER}"
|
export HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.root.logger=${HADOOP_MAPRED_ROOT_LOGGER}"
|
||||||
|
|
|
@ -36,6 +36,12 @@ fi
|
||||||
bin=`dirname "${BASH_SOURCE-$0}"`
|
bin=`dirname "${BASH_SOURCE-$0}"`
|
||||||
bin=`cd "$bin"; pwd`
|
bin=`cd "$bin"; pwd`
|
||||||
|
|
||||||
|
DEFAULT_LIBEXEC_DIR="$bin"/../libexec
|
||||||
|
HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}
|
||||||
|
if [ -e ${HADOOP_LIBEXEC_DIR}/mapred-config.sh ]; then
|
||||||
|
. $HADOOP_LIBEXEC_DIR/mapred-config.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# get arguments
|
# get arguments
|
||||||
startStop=$1
|
startStop=$1
|
||||||
shift
|
shift
|
||||||
|
@ -68,10 +74,6 @@ export HADOOP_MAPRED_LOGFILE=mapred-$HADOOP_MAPRED_IDENT_STRING-$command-$HOSTNA
|
||||||
export HADOOP_MAPRED_ROOT_LOGGER=${HADOOP_MAPRED_ROOT_LOGGER:-INFO,RFA}
|
export HADOOP_MAPRED_ROOT_LOGGER=${HADOOP_MAPRED_ROOT_LOGGER:-INFO,RFA}
|
||||||
export HADOOP_JHS_LOGGER=${HADOOP_JHS_LOGGER:-INFO,JSA}
|
export HADOOP_JHS_LOGGER=${HADOOP_JHS_LOGGER:-INFO,JSA}
|
||||||
|
|
||||||
DEFAULT_LIBEXEC_DIR="$bin"/../libexec
|
|
||||||
HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}
|
|
||||||
. $HADOOP_LIBEXEC_DIR/mapred-config.sh
|
|
||||||
|
|
||||||
if [ -f "${HADOOP_CONF_DIR}/mapred-env.sh" ]; then
|
if [ -f "${HADOOP_CONF_DIR}/mapred-env.sh" ]; then
|
||||||
. "${HADOOP_CONF_DIR}/mapred-env.sh"
|
. "${HADOOP_CONF_DIR}/mapred-env.sh"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue