Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 10627 invoked from network); 3 Apr 2008 21:14:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 21:14:01 -0000 Received: (qmail 25976 invoked by uid 500); 3 Apr 2008 21:13:58 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 25945 invoked by uid 500); 3 Apr 2008 21:13:58 -0000 Mailing-List: contact core-dev-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-dev@hadoop.apache.org Received: (qmail 25904 invoked by uid 99); 3 Apr 2008 21:13:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 14:13:58 -0700 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; Thu, 03 Apr 2008 21:13:15 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A3762234C0BC for ; Thu, 3 Apr 2008 14:11:24 -0700 (PDT) Message-ID: <897779670.1207257084668.JavaMail.jira@brutus> Date: Thu, 3 Apr 2008 14:11:24 -0700 (PDT) From: "Hairong Kuang (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Issue Comment Edited: (HADOOP-3162) Map/reduce stops working with comma separated input paths In-Reply-To: <2125326957.1207243104536.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585287#action_12585287 ] hairong edited comment on HADOOP-3162 at 4/3/08 2:11 PM: --------------------------------------------------------------- The problem was caused by the patch to HADOOP-3064. HADOOP-3064 allows that a path name contains a comma. Methods setInputPath and addInputPath of JobConf escape all the commas in the path name. So before this change, if a user's map/reduce job has the following code: {code} jobConf.setInputPath(new Path("aa,bb"))); {code} jobConf.getInputPaths returned an array of two paths: "aa" and "bb". After this patch, jobConf.getInputPaths returns an array of one path: "aa,bb". I guess the failed job might have used jobConf.setInputPath(new Path("path1,path2")) to set two input paths. It should use the following statements instead: {code} jobConf.setInputPath(new Path("path1")); jobConf.addInputPath(new Path("path2")); {code} was (Author: hairong): The problem was caused by the patch to HADOOP-3064. HADOOP_3064 allows that a path name contains a comma. Methods setInputPath and addInputPath of JobConf escape all the commas in the path name. So before this change, if a user's map/reduce job has the following code: {code} jobConf.setInputPath(new Path("aa,bb"))); {code} jobConf.getInputPaths returned an array of two paths: "aa" and "bb". After this patch, jobConf.getInputPaths returns an array of one path: "aa,bb". I guess the failed job might have used jobConf.setInputPath(new Path("path1,path2")) to set two input paths. It should use the following statements instead: {code} jobConf.setInputPath(new Path("path1")); jobConf.addInputPath(new Path("path2")); {code} > Map/reduce stops working with comma separated input paths > --------------------------------------------------------- > > Key: HADOOP-3162 > URL: https://issues.apache.org/jira/browse/HADOOP-3162 > Project: Hadoop Core > Issue Type: Bug > Components: mapred > Affects Versions: 0.17.0 > Reporter: Runping Qi > Assignee: Amar Kamat > Priority: Blocker > Fix For: 0.17.0 > > > When a job is given a comma separated input file list, FileInputFormat class throws an exception, complaining the input is invalid: > org.apache.hadoop.mapred.InvalidInputException: Input path doesnt exist : hdfs:/ > namenode:port/gridmix/data/MonsterQueryBlockCompressed/part- > 00000,/gridmix/data/MonsterQueryBlockCompressed/part-00001,/gridmix/data/Monster > QueryBlockCompressed/part-00002 > at org.apache.hadoop.mapred.FileInputFormat.validateInput(FileInputForma > t.java:213) > at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:705) > at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:973) > at org.apache.hadoop.mapred.GenericMRLoadGenerator.run(GenericMRLoadGene > rator.java:189) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.