[
https://issues.apache.org/jira/browse/HDFS-1750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008167#comment-13008167
]
Tsz Wo (Nicholas), SZE commented on HDFS-1750:
----------------------------------------------
Suresh, thanks for the review.
bq. 1. Can you add a description why this problem happens and how you are
fixing it?
The problem is that {{HdfsFileStatus.getLocalName()}} returns an empty string
in some cases; see HDFS-1743.
The solution here is simply not to use {{HdfsFileStatus.getLocalName()}} in
{{ListPathsServlet}}. We use {{HdfsFileStatus.getFullPath(..)}} instead since
the full path is required anyway.
bq. Should we create a bug for access and modification time mismatch between
hftp access and direct hdfs access?
Will do.
> fs -ls hftp://file not working
> ------------------------------
>
> Key: HDFS-1750
> URL: https://issues.apache.org/jira/browse/HDFS-1750
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 0.21.1
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Tsz Wo (Nicholas), SZE
> Attachments: h1750_20110314.patch
>
>
> {noformat}
> hadoop dfs -touchz /tmp/file1 # create file. OK
> hadoop dfs -ls /tmp/file1 # OK
> hadoop dfs -ls hftp://namenode:50070/tmp/file1 # FAILED: not seeing the file
> {noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira