hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remus Rusanu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10663) Path.getFileSystem should identify Windows drive (c:) like files and return the localFS
Date Thu, 12 Jun 2014 19:43:05 GMT

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

Remus Rusanu commented on HADOOP-10663:
---------------------------------------

[~cnauroth] I agree, lets go with MAPREDUCE-5912. But on the argument of the hypothetical
FS that accepts colon I would say than, on the same logic, there will never ever be a way
to determine the FS from a Path that has not scheme. Any heuristic that infers the FS from
name can be defeated by a carefully constructed future FS :) In other words scheme should
be mandatory

> Path.getFileSystem should identify Windows drive (c:) like files and return the localFS
> ---------------------------------------------------------------------------------------
>
>                 Key: HADOOP-10663
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10663
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Remus Rusanu
>            Assignee: Remus Rusanu
>         Attachments: HADOOP-10663.1.patch
>
>
> While investigating the problem with MAPREDUCE-5912 I considered that the fact that asking
a Windows specific Path to get its file system should not return the default FS, but the localFS.
Specifically, I believe that Path.initialize should identify such names as belonging to the
'file://' scheme (when null) and so create appropriate URIs.
> I do not have the know-how to evaluate the bigger impact of such a change.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message