hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chuan Liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8872) FileSystem#length returns zero for symlinks on windows+java6
Date Tue, 23 Oct 2012 21:15:12 GMT

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

Chuan Liu commented on HADOOP-8872:
-----------------------------------

+1

Just want to add this patch also add options to 'winutils ls' so that it can be used to get
symlink target file size. Because we have both ways, i.e. native library API and 'winutils',
to get the file length, there should be no regression for other projects that uses Hadoop.
                
> FileSystem#length returns zero for symlinks on windows+java6
> ------------------------------------------------------------
>
>                 Key: HADOOP-8872
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8872
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 1-win
>            Reporter: Ivan Mitic
>            Assignee: Ivan Mitic
>         Attachments: HADOOP-8872.branch-1-win.symlink0.patch
>
>
> RawLocalFileSystem does not work well with symbolic links on Windows. Specifically, calling
FileSystem#lengh on the path that is a symlink will return zero. This causes problems in some
objects that use LocalFileSystem to access local files. One example is a SequenceFile.
> The issue is caused by Java6 File#length returning zero for symbolic links on Windows.
On Java7, we will no longer have this problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message