Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 15385 invoked from network); 14 Feb 2007 23:23:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2007 23:23:27 -0000 Received: (qmail 12490 invoked by uid 500); 14 Feb 2007 23:23:34 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 12463 invoked by uid 500); 14 Feb 2007 23:23:34 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 12454 invoked by uid 99); 14 Feb 2007 23:23:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 15:23:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2007 15:23:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B10A47141B8 for ; Wed, 14 Feb 2007 15:23:05 -0800 (PST) Message-ID: <11581588.1171495385722.JavaMail.jira@brutus> Date: Wed, 14 Feb 2007 15:23:05 -0800 (PST) From: "Doug Cutting (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-1020) Path class on Windows seems broken In-Reply-To: <7967319.1171484165501.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-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473248 ] Doug Cutting commented on HADOOP-1020: -------------------------------------- Windows pathnames are problematic as URIs. For back-compatibility, I special-cased things on Windows so that a path that begins with is treated as though it begins file:///. This handling is disabled on other operating systems. Perhaps we should disable it altogether, but then I fear lots of things would break on Windows. That explains the first assertion failing on Linux. The failure of the second assertion looks like a bug to me. > Path class on Windows seems broken > ---------------------------------- > > Key: HADOOP-1020 > URL: https://issues.apache.org/jira/browse/HADOOP-1020 > Project: Hadoop > Issue Type: Bug > Components: dfs > Affects Versions: 0.11.1 > Reporter: Nigel Daley > Attachments: TestPath.java.patch > > > Executing this code: > Path file = new Path("file:///", "C:/trunk/build/test/data"); or Path file = new Path("C:/trunk/build/test/data"); > FileSystem fs = file.getFileSystem(conf); > fs.mkdirs(file)) > produces this exception. It looks like it's defaulting to the DistributedFileSystem. > 2007-02-14 11:36:31,700 INFO mapred.TaskInProgress (TaskInProgress.java:updateStatus(296)) - Error from task_0001_m_000000_0: java.lang.IllegalArgumentException: Pathname /C:/trunk/build/test/data from C:/trunk/build/test/data is not a valid DFS filename. > at org.apache.hadoop.dfs.DistributedFileSystem.getPath(DistributedFileSystem.java:111) > at org.apache.hadoop.dfs.DistributedFileSystem.mkdirs(DistributedFileSystem.java:211) > at org.apache.hadoop.mapred.MRCaching$MapClass.configure(MRCaching.java:68) > at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:50) > at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:70) > at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34) > at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:50) > at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:70) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:178) > at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:1396) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.