Author: yhemanth
Date: Thu Jan 29 03:51:11 2009
New Revision: 738744
URL: http://svn.apache.org/viewvc?rev=738744&view=rev
Log:
HADOOP-5113. Fixed logcondense to remove files for usernames beginning with
characters specified in the -l option. Contributed by Peeyush Bishnoi.
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=738744&r1=738743&r2=738744&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hod/CHANGES.txt (original)
+++ hadoop/core/trunk/src/contrib/hod/CHANGES.txt Thu Jan 29 03:51:11 2009
@@ -16,6 +16,10 @@
BUG FIXES
+ HADOOP-5113. Fixed logcondense to remove files for usernames
+ beginning with characters specified in the -l option.
+ (Peeyush Bishnoi via yhemanth)
+
Release 0.20.0 - (unreleased changes)
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=738744&r1=738743&r2=738744&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hod/support/logcondense.py (original)
+++ hadoop/core/trunk/src/contrib/hod/support/logcondense.py Thu Jan 29
03:51:11 2009
@@ -146,7 +146,7 @@
# file name format:
<prefix>/<user>/hod-logs/<jobid>/[0-9]*-[jobtracker|tasktracker|datanode|namenode|]-hostname-YYYYMMDDtime-random.tar.gz
# first strip prefix:
if filename.startswith(options.log):
- filename = filename.lstrip(options.log)
+ filename = filename[len(options.log):]
if not filename.startswith('/'):
filename = '/' + filename
else: