From 94096ff6f581faa25a2b9033bcb46e785c4a5968 Mon Sep 17 00:00:00 2001 From: Devaraj Das Date: Sat, 17 Sep 2011 06:06:21 +0000 Subject: [PATCH] HADOOP-7633. Adds log4j.properties to the hadoop-conf dir on deploy. Contributed by Eric Yang. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1171909 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../hadoop-common/src/main/packages/hadoop-setup-conf.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 9641996976..46752a50c4 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -597,6 +597,9 @@ Release 0.23.0 - Unreleased HADOOP-7637. Fix to include FairScheduler configuration file in RPM. (Eric Yang via ddas) + HADOOP-7633. Adds log4j.properties to the hadoop-conf dir on + deploy (Eric Yang via ddas) + Release 0.22.0 - Unreleased INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/main/packages/hadoop-setup-conf.sh b/hadoop-common-project/hadoop-common/src/main/packages/hadoop-setup-conf.sh index 64a8d57db8..8e903cf308 100644 --- a/hadoop-common-project/hadoop-common/src/main/packages/hadoop-setup-conf.sh +++ b/hadoop-common-project/hadoop-common/src/main/packages/hadoop-setup-conf.sh @@ -477,6 +477,9 @@ else if [ ! -e ${HADOOP_CONF_DIR}/capacity-scheduler.xml ]; then template_generator ${HADOOP_PREFIX}/share/hadoop/templates/conf/capacity-scheduler.xml ${HADOOP_CONF_DIR}/capacity-scheduler.xml fi + if [ ! -e ${HADOOP_CONF_DIR}/log4j.properties ]; then + cp ${HADOOP_PREFIX}/share/hadoop/common/templates/conf/log4j.properties ${HADOOP_CONF_DIR}/log4j.properties + fi chown root:${HADOOP_GROUP} ${HADOOP_CONF_DIR}/hadoop-env.sh chmod 755 ${HADOOP_CONF_DIR}/hadoop-env.sh