FAQ
FileSystem.getUri().resolve() should handle Path created on Windows
-------------------------------------------------------------------

Key: HADOOP-3170
URL: https://issues.apache.org/jira/browse/HADOOP-3170
Project: Hadoop Core
Issue Type: Bug
Environment: windows
Reporter: lohit vijayarenu


FileSystem.getUri() returns URI constructed from string "file:///" This when applied to absolute Paths created on Windows breaks. For example when using a patch constructed like this with DistributedCache(). makeAbsolute(Path) seems to return path with drive letter followed by colon. URI.resolve() treats this part as authority for local filesystem on windows.

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

Search Discussions

  • lohit vijayarenu (JIRA) at Apr 4, 2008 at 11:25 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    lohit vijayarenu resolved HADOOP-3170.
    --------------------------------------

    Resolution: Invalid

    Doug pointed out I had to use File#toUri(). Closing this was invalid.
    FileSystem.getUri().resolve() should handle Path created on Windows
    -------------------------------------------------------------------

    Key: HADOOP-3170
    URL: https://issues.apache.org/jira/browse/HADOOP-3170
    Project: Hadoop Core
    Issue Type: Bug
    Environment: windows
    Reporter: lohit vijayarenu

    FileSystem.getUri() returns URI constructed from string "file:///" This when applied to absolute Paths created on Windows breaks. For example when using a patch constructed like this with DistributedCache(). makeAbsolute(Path) seems to return path with drive letter followed by colon. URI.resolve() treats this part as authority for local filesystem on windows.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedApr 4, '08 at 6:40a
activeApr 4, '08 at 11:25p
posts2
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

lohit vijayarenu (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase