[
https://issues.apache.org/jira/browse/HADOOP-9061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13500453#comment-13500453
]
Colin Patrick McCabe commented on HADOOP-9061:
----------------------------------------------
One way to handle this would be to disable symlinks on Windows unless JDK7 is
present. Another way would be a symlink-aware implementation of operations
like {{File#renameTo}} on JDK6 and earlier. This would have to be JNI, I
think, and could be done in {{libhadoop.so}}.
> Java6+Windows does not work well with symlinks
> ----------------------------------------------
>
> Key: HADOOP-9061
> URL: https://issues.apache.org/jira/browse/HADOOP-9061
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
>
> We’ve seen multiple problems with file operations on symbolic links on Java6
> on Windows. Specifically:
> - File#length returns zero on symbolic links
> - File#renameTo renames the target, not the symlink
> Problematic scenarios are mainly related to symlinks created for dist cache.
> Java7 does not have above problems.
--
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