hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r742827 - in /hadoop/core/trunk: CHANGES.txt src/contrib/chukwa/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java
Date Tue, 10 Feb 2009 02:39:24 GMT
Author: cdouglas
Date: Tue Feb 10 02:39:24 2009
New Revision: 742827

URL: http://svn.apache.org/viewvc?rev=742827&view=rev
Log:
HADOOP-5100. Append, rather than truncate, when creating log4j metrics in Chukwa. Contributed
by Jerome Boulon

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/contrib/chukwa/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=742827&r1=742826&r2=742827&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Tue Feb 10 02:39:24 2009
@@ -141,6 +141,9 @@
     HADOOP-5148. Fix logic disabling watchdog timer in Chukwa daemon scripts.
     (Ari Rabkin via cdouglas)
 
+    HADOOP-5100. Append, rather than truncate, when creating log4j metrics in
+    Chukwa. (Jerome Boulon via cdouglas)
+
 Release 0.20.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/trunk/src/contrib/chukwa/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java?rev=742827&r1=742826&r2=742827&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java
(original)
+++ hadoop/core/trunk/src/contrib/chukwa/src/java/org/apache/hadoop/chukwa/inputtools/log4j/Log4JMetricsContext.java
Tue Feb 10 02:39:24 2009
@@ -85,7 +85,7 @@
 				        new org.apache.hadoop.chukwa.inputtools.log4j.ChukwaDailyRollingFileAppender();
 				  appender.setName("chukwa."+contextName);
 				  appender.setLayout(layout);
-				  appender.setAppend(false);
+				  appender.setAppend(true);
 				  if(properties.getProperty("log4j.appender.chukwa."+contextName+".Dir")!=null) {
 					  String logName = properties.getProperty("log4j.appender.chukwa."+contextName+".Dir")+File.separator+"chukwa-"+user+"-"+contextName+".log";
 					  // FIXME: Hack to make the log file readable by chukwa user. 



Mime
View raw message