You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Suresh Srinivas (JIRA)" <ji...@apache.org> on 2015/03/03 22:33:04 UTC

[jira] [Commented] (HDFS-7878) API - expose an unique file identifier

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

Suresh Srinivas commented on HDFS-7878:
---------------------------------------

[~sershe], FileSystem#getFileStatus returns FileStatus. When using HDFS, this can be cast to HDFSFileStatus. This has HDFSFIleStatus#fileId. Is this what you are looking for?

> API - expose an unique file identifier
> --------------------------------------
>
>                 Key: HDFS-7878
>                 URL: https://issues.apache.org/jira/browse/HDFS-7878
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Sergey Shelukhin
>
> See HDFS-487.
> Even though that is resolved as duplicate, the ID is actually not exposed by the JIRA it supposedly duplicates.
> INode ID for the file should be easy to expose; alternatively ID could be derived from block IDs, to account for appends...
> This is useful e.g. for cache key by file, to make sure cache stays correct when file is overwritten.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)