Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 78048 invoked from network); 1 Mar 2010 19:30:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 19:30:28 -0000 Received: (qmail 98674 invoked by uid 500); 1 Mar 2010 19:30:26 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 98631 invoked by uid 500); 1 Mar 2010 19:30:26 -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 98558 invoked by uid 99); 1 Mar 2010 19:30:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 19:30:26 +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; Mon, 01 Mar 2010 19:30:25 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CDC7729A0012 for ; Mon, 1 Mar 2010 19:30:05 +0000 (UTC) Message-ID: <1018132412.39241267471805842.JavaMail.jira@brutus.apache.org> Date: Mon, 1 Mar 2010 19:30:05 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Updated: (MAPREDUCE-1522) FileInputFormat may change the file system of an input path In-Reply-To: <502228246.444721266876027910.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated MAPREDUCE-1522: ---------------------------------------------- Attachment: m1522_20100224.patch Amareshwari, thanks for the review. m1522_20100224.patch: incorporated both review comments. Without the changes in FileInputFormat, it will fail on the new test as following. {noformat} defaultfs.getUri() = s3://abc:xyz@hostname original = file:/foo results = [file://abc:xyz@hostname/foo] ------------- ---------------- --------------- Testcase: testAddInputPath took 0.704 sec FAILED expected: but was: junit.framework.AssertionFailedError: expected: but was: at org.apache.hadoop.mapreduce.lib.input.TestFileInputFormat.testAddInputPath(TestFileInputFormat.java:54) {noformat} > FileInputFormat may change the file system of an input path > ----------------------------------------------------------- > > Key: MAPREDUCE-1522 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1522 > Project: Hadoop Map/Reduce > Issue Type: Bug > Reporter: Tsz Wo (Nicholas), SZE > Attachments: m1522_20100224.patch, m1522_20100224.patch, m1522_20100224_0.20.patch, m1552_20100223_0.20.patch > > > org.apache.hadoop.mapreduce.lib.input.FileInputFormat.addInputPath(Job job, Path path) uses the default FileSystem but not the FileSystem specified in the path. > {code} > //org.apache.hadoop.mapreduce.lib.input.FileInputFormat > public static void addInputPath(Job job, > Path path) throws IOException { > Configuration conf = job.getConfiguration(); > FileSystem fs = FileSystem.get(conf); > path = path.makeQualified(fs); // the original FileSystem is lost. > ... > } > {code} > There is a similar problem in FileInputFormat.setInputPaths(..). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.