Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 50470 invoked from network); 26 Mar 2008 20:53:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2008 20:53:36 -0000 Received: (qmail 32696 invoked by uid 500); 26 Mar 2008 20:53:33 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 32670 invoked by uid 500); 26 Mar 2008 20:53:33 -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 32661 invoked by uid 99); 26 Mar 2008 20:53:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 13:53:33 -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; Wed, 26 Mar 2008 20:53:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 27E96234C0AC for ; Wed, 26 Mar 2008 13:51:25 -0700 (PDT) Message-ID: <1595922771.1206564685162.JavaMail.jira@brutus> Date: Wed, 26 Mar 2008 13:51:25 -0700 (PDT) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3064) Exception with file globbing closures In-Reply-To: <402490044.1206117685843.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-3064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582424#action_12582424 ] Tsz Wo (Nicholas), SZE commented on HADOOP-3064: ------------------------------------------------ FYI, all of the following return an empty array: {code} System.out.println(Arrays.asList("".split(","))); System.out.println(Arrays.asList(",".split(","))); System.out.println(Arrays.asList(",,".split(","))); {code} > Exception with file globbing closures > ------------------------------------- > > Key: HADOOP-3064 > URL: https://issues.apache.org/jira/browse/HADOOP-3064 > Project: Hadoop Core > Issue Type: Bug > Components: mapred > Affects Versions: 0.16.1 > Reporter: Tom White > Assignee: Hairong Kuang > Attachments: inputPath.patch, inputPath1.patch, inputPath2.patch > > > Using file globbing to select various input paths, like so: > conf.setInputPath(new Path("mr/input/glob/2008/02/{02,08}")); > gives an exception: > Exception in thread "main" java.io.IOException: Illegal file pattern: > Expecting set closure character or end of range, or } for glob {02 at > 3 > at org.apache.hadoop.fs.FileSystem$GlobFilter.error(FileSystem.java:1023) > at org.apache.hadoop.fs.FileSystem$GlobFilter.setRegex(FileSystem.java:1008) > at org.apache.hadoop.fs.FileSystem$GlobFilter.(FileSystem.java:926) > at org.apache.hadoop.fs.FileSystem.globStatus(FileSystem.java:826) > at org.apache.hadoop.fs.FileSystem.globPaths(FileSystem.java:873) > at org.apache.hadoop.mapred.FileInputFormat.validateInput(FileInputFormat.java:131) > at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:541) > at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:809) > The code for JobConf.getInputPaths tokenizes using > a comma as the delimiter, producing two paths > "mr/input/glob/2008/02/{02" and "08}". -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.