hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yhema...@apache.org
Subject svn commit: r674777 - in /hadoop/core/trunk/src/contrib/hod: CHANGES.txt support/logcondense.py
Date Tue, 08 Jul 2008 11:50:10 GMT
Author: yhemanth
Date: Tue Jul  8 04:50:09 2008
New Revision: 674777

URL: http://svn.apache.org/viewvc?rev=674777&view=rev
Log:
HADOOP-3703. Fixes logcondense.py to use the new format of hadoop dfs -lsr command line output
format. Contributed by Vinod Kumar Vavilapalli.

Modified:
    hadoop/core/trunk/src/contrib/hod/CHANGES.txt
    hadoop/core/trunk/src/contrib/hod/support/logcondense.py

Modified: hadoop/core/trunk/src/contrib/hod/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hod/CHANGES.txt?rev=674777&r1=674776&r2=674777&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hod/CHANGES.txt (original)
+++ hadoop/core/trunk/src/contrib/hod/CHANGES.txt Tue Jul  8 04:50:09 2008
@@ -65,6 +65,9 @@
     HADOOP-3668. Makes editorial changes to HOD documentation.
     (Vinod Kumar Vavilapalli via yhemanth)
 
+    HADOOP-3703. Fixes logcondense.py to use the new format of hadoop dfs -lsr
+    command line output format. (Vinod Kumar Vavilapalli via yhemanth)
+
 Release 0.17.0 - 2008-05-18
 
   INCOMPATIBLE CHANGES

Modified: hadoop/core/trunk/src/contrib/hod/support/logcondense.py
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hod/support/logcondense.py?rev=674777&r1=674776&r2=674777&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hod/support/logcondense.py (original)
+++ hadoop/core/trunk/src/contrib/hod/support/logcondense.py Tue Jul  8 04:50:09 2008
@@ -126,7 +126,7 @@
   toPurge = { }
   for line in stdout:
     try:
-      m = re.match("^(.*?)\s.*$", line)
+      m = re.match("^.*\s(.*)\n$", line)
       filename = m.group(1)
       # file name format: <prefix>/<user>/hod-logs/<jobid>/[0-1]-[jobtracker|tasktracker|datanode|namenode|]-hostname-YYYYMMDDtime-random.tar.gz
       # first strip prefix:



Mime
View raw message