소스 검색

HADOOP-3703. Fixes logcondense.py to use the new format of hadoop dfs -lsr command line output format. Contributed by Vinod Kumar Vavilapalli.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@674777 13f79535-47bb-0310-9956-ffa450edef68
Hemanth Yamijala 17 년 전
부모
커밋
23814e0ca2
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      src/contrib/hod/CHANGES.txt
  2. 1 1
      src/contrib/hod/support/logcondense.py

+ 3 - 0
src/contrib/hod/CHANGES.txt

@@ -65,6 +65,9 @@ Release 0.18.0 - Unreleased
     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

+ 1 - 1
src/contrib/hod/support/logcondense.py

@@ -126,7 +126,7 @@ def runcondense():
   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: