[ 
https://issues.apache.org/jira/browse/HADOOP-13715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Manoj Govindassamy updated HADOOP-13715:
----------------------------------------
    Attachment: HADOOP-13715.01.patch

[~drankye], [~rakeshr],
bq. I could see encryption feature has exposed APIs like, HdfsFileStatus has 
#getFileEncryptionInfo() exposed and FileStatus contains #isEncrypted() flag, 
to tell whether the underlying file or directory is encrypted or not. imho, EC 
could expose APIs in similar lines.
Yes, I am extending {{FsPermissionExtension}} to include Erasure Coded status 
just like in Encryption

[~andrew.wang],
bq. I just reviewed HDFS-6984 which redoes FileStatus to serialize via 
protobuf, which will add a bitfield to FileStatus for flags like this. If we 
also add a bitfield to HdfsFileStatus, this JIRA should become easier.
I hope HDFS-6984 will take care of folding in the newly added {{erasureBit}} to 
HdfsFileStatus. If this patch 

Attaching v01 patch to make FileStatus expose isErasureCoded() via a new bit  
in FsPermissionExtension. To be consistent with encryption and acl bit 
approach, this patch doesn't intend to change any on-disk formats. 
[~andrew.wang], can you please take a look at the patch ?



> Add isErasureCoded() API to FileStatus class
> --------------------------------------------
>
>                 Key: HADOOP-13715
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13715
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Wei-Chiu Chuang
>            Assignee: Manoj Govindassamy
>            Priority: Blocker
>              Labels: hdfs-ec-3.0-must-do
>         Attachments: HADOOP-13715.01.patch
>
>
> Per the discussion in 
> [HDFS-10971|https://issues.apache.org/jira/browse/HDFS-10971?focusedCommentId=15567108&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15567108]
>  I would like to add a new API {{isErasureCoded()}} to {{FileStatus}} so that 
> tools and downstream applications can tell if it needs to treat a file 
> differently.
> Hadoop tools that can benefit from this effort include: distcp and 
> teragen/terasort.
> Downstream applications such as flume or hbase may also benefit from it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to