Return-Path: Delivered-To: apmail-hadoop-core-commits-archive@www.apache.org Received: (qmail 16979 invoked from network); 29 Jan 2009 03:51:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2009 03:51:36 -0000 Received: (qmail 33589 invoked by uid 500); 29 Jan 2009 03:51:35 -0000 Delivered-To: apmail-hadoop-core-commits-archive@hadoop.apache.org Received: (qmail 33566 invoked by uid 500); 29 Jan 2009 03:51:35 -0000 Mailing-List: contact core-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-commits@hadoop.apache.org Received: (qmail 33557 invoked by uid 99); 29 Jan 2009 03:51:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jan 2009 19:51:35 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2009 03:51:33 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 91CFE2388A50; Thu, 29 Jan 2009 03:51:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r738744 - in /hadoop/core/trunk/src/contrib/hod: CHANGES.txt support/logcondense.py Date: Thu, 29 Jan 2009 03:51:12 -0000 To: core-commits@hadoop.apache.org From: yhemanth@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090129035112.91CFE2388A50@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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: //hod-logs//[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: