You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Dennis Kubes (JIRA)" <ji...@apache.org> on 2007/10/18 03:36:50 UTC

[jira] Commented: (HADOOP-2072) RawLocalFileStatus is causing Path problems

    [ https://issues.apache.org/jira/browse/HADOOP-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535803 ] 

Dennis Kubes commented on HADOOP-2072:
--------------------------------------

Ok, so this is NOT a problem in RawLocalFileStatus as much as it is a mismatch between newer code in Path handling that deals with resources mainly as URIs and older code in Nutch which deals with local files as File objects.  The solution to this is to change older code to be translated first into URIs then from there to local files.  This is an example:

URI fileUri = file.toUri();
new File(fileUri).toString()

I will mark this issue resolved and it can be closed.

> RawLocalFileStatus is causing Path problems 
> --------------------------------------------
>
>                 Key: HADOOP-2072
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2072
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.14.3
>         Environment: All, shows up most on Windows
>            Reporter: Dennis Kubes
>             Fix For: 0.14.3, 0.15.0, 0.16.0
>
>
> In RawLocalFileStatus of the RawLocalFileSystem class, files were getting changed to URIs then to string which would cause some files to appear as C:/somethingfile://anotherpath.  This is a simple change and it just needs to be converted as toString and opposed to toUri().toString().  The problem area is line 324 of the org.apache.hadoop.fs.RawLocalFileSystem.java file.  I am testing a patch currently and will submit as soon as it passes all current unit tests.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.