From 4dd5c3169d7de9c528aad382130c78d05fd8130d Mon Sep 17 00:00:00 2001 From: Arun Murthy Date: Wed, 26 Oct 2011 02:17:05 +0000 Subject: [PATCH] Merge -c 1188999 from trunk to branch-0.23 to complete fix for MAPREDUCE-3269. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1189000 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ hadoop-mapreduce-project/hadoop-yarn/bin/yarn | 2 ++ hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh | 1 + 3 files changed, 6 insertions(+) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 898eba24667..5b94386ff40 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -1712,6 +1712,9 @@ Release 0.23.0 - Unreleased MAPREDUCE-3263. Fixed the MAPREDUCE-3028 commit which broke MR1. (Hitesh Shah via acmurthy) + MAPREDUCE-3269. Fixed log4j properties to correctly set logging options + for JobHistoryServer vis-a-vis JobSummary logs. (mahadev via acmurthy) + Release 0.22.0 - Unreleased INCOMPATIBLE CHANGES diff --git a/hadoop-mapreduce-project/hadoop-yarn/bin/yarn b/hadoop-mapreduce-project/hadoop-yarn/bin/yarn index 603dd142389..f6d3f157b6a 100644 --- a/hadoop-mapreduce-project/hadoop-yarn/bin/yarn +++ b/hadoop-mapreduce-project/hadoop-yarn/bin/yarn @@ -176,6 +176,8 @@ if [ "$YARN_LOGFILE" = "" ]; then YARN_LOGFILE='yarn.log' fi +YARN_JOB_HISTORYSERVER_OPTS="-Dmapred.jobsummary.logger=${YARN_JHS_LOGGER:-INFO,console}" + # restore ordinary behaviour unset IFS diff --git a/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh b/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh index dfd500f5200..c3d17242700 100644 --- a/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh +++ b/hadoop-mapreduce-project/hadoop-yarn/bin/yarn-daemon.sh @@ -86,6 +86,7 @@ fi # some variables export YARN_LOGFILE=yarn-$YARN_IDENT_STRING-$command-$HOSTNAME.log export YARN_ROOT_LOGGER="INFO,DRFA" +export YARN_JHS_LOGGER="INFO,JSA" log=$YARN_LOG_DIR/yarn-$YARN_IDENT_STRING-$command-$HOSTNAME.out pid=$YARN_PID_DIR/yarn-$YARN_IDENT_STRING-$command.pid