chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billgra...@apache.org
Subject svn commit: r1037952 - /incubator/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/writer/SeqFileWriter.java
Date Tue, 23 Nov 2010 00:19:38 GMT
Author: billgraham
Date: Tue Nov 23 00:19:38 2010
New Revision: 1037952

URL: http://svn.apache.org/viewvc?rev=1037952&view=rev
Log:
CHUKWA-561. No month in sequence file log names

Modified:
    incubator/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/writer/SeqFileWriter.java

Modified: incubator/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/writer/SeqFileWriter.java
URL: http://svn.apache.org/viewvc/incubator/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/writer/SeqFileWriter.java?rev=1037952&r1=1037951&r2=1037952&view=diff
==============================================================================
--- incubator/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/writer/SeqFileWriter.java
(original)
+++ incubator/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/writer/SeqFileWriter.java
Tue Nov 23 00:19:38 2010
@@ -175,7 +175,7 @@ public class SeqFileWriter extends Pipel
     
     calendar.setTimeInMillis(System.currentTimeMillis());
 
-    String newName = new java.text.SimpleDateFormat("yyyyddHHmmssSSS")
+    String newName = new java.text.SimpleDateFormat("yyyyMMddHHmmssSSS")
         .format(calendar.getTime());
     newName += localHostAddr + new java.rmi.server.UID().toString();
     newName = newName.replace("-", "");



Mime
View raw message