Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 37577 invoked from network); 10 Mar 2010 22:12:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Mar 2010 22:12:22 -0000 Received: (qmail 2215 invoked by uid 500); 10 Mar 2010 22:11:51 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 2169 invoked by uid 500); 10 Mar 2010 22:11:51 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 2161 invoked by uid 99); 10 Mar 2010 22:11:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Mar 2010 22:11:51 +0000 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Mar 2010 22:11:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A4CD0234C4C2 for ; Wed, 10 Mar 2010 22:11:27 +0000 (UTC) Message-ID: <765457224.188531268259087674.JavaMail.jira@brutus.apache.org> Date: Wed, 10 Mar 2010 22:11:27 +0000 (UTC) From: "Rodrigo Schmidt (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-1579) archive: check and possibly replace the space charater in paths In-Reply-To: <1568659007.148471268115327851.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843794#action_12843794 ] Rodrigo Schmidt commented on MAPREDUCE-1579: -------------------------------------------- Yes, that's exactly what I mean. The code looks much better with HarEntry. Another thing I just noticed in your path is that you are calling checkSpace inside relPathToRoot() and outside it on writeTopLevelDirs(). I think it is better to check for spaces outside relPathToRoot() since checking for spaces is something that we would like to do in the beginning of the execution only (and relPathToRoot() is an auxiliary function we might want to use several times throughout the execution). If you agree with that, you can just remove checkSpace from inside relPathToRoot() and place it also after the relPathToRoot() call on method archive(). If you prefer to leave the checkSpace() call inside relPathToRoot(), then you can probably remove the checkSpace(relPath) call on writeTopLevelDirs(). > archive: check and possibly replace the space charater in paths > --------------------------------------------------------------- > > Key: MAPREDUCE-1579 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1579 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Components: harchive > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Mahadev konar > Attachments: m1579_20100310.patch > > > Since the space character is used as a separator in the index files, it won't work if there are spaces in the path (see also HADOOP-6591). The archive tools should > # detect if there are spaces in the paths and > # provide an option to replace it with some other characters. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.