hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Lamb (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-6843) Create FileStatus isEncrypted() method
Date Mon, 08 Sep 2014 19:58:29 GMT

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

Charles Lamb updated HDFS-6843:
-------------------------------
    Attachment: HDFS-6843.006.patch

[~andrew.wang], [~stevel@apache.org],

bq. When accessed from within /.reserved/raw, I think things should still show up as encrypted.
It's a little inconsistent right now, since files wouldn't show up as isEncrypted, while dirs
would. This would be a good thing to have in a unit test.

Good point. Just to clarify, only /.r/r files/dirs that are in an EZ will return true from
isEncrypted.

bq. Would like a similar test as to what's in FSAclBaseTest that makes sure we can't set the
isEncrypted bit

Good catch. I believe that my earlier patch actually messed up this test by passing false
to the new ctor. I've changed that to true and also changed the isEnc bit to true for the
test.

Per our offline discussion, the UI stuff has been removed.

For the doc/spec changes, I've taken a stab at it. If I'm still
too far off then we should probably move this back to a separate
jira.



> Create FileStatus isEncrypted() method
> --------------------------------------
>
>                 Key: HDFS-6843
>                 URL: https://issues.apache.org/jira/browse/HDFS-6843
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode, security
>    Affects Versions: 3.0.0
>            Reporter: Charles Lamb
>            Assignee: Charles Lamb
>         Attachments: HDFS-6843.001.patch, HDFS-6843.002.patch, HDFS-6843.003.patch, HDFS-6843.004.patch,
HDFS-6843.005.patch, HDFS-6843.005.patch, HDFS-6843.006.patch
>
>
> FileStatus should have a 'boolean isEncrypted()' method. (it was in the context of discussing
with AndreW about FileStatus being a Writable).
> Having this method would allow MR JobSubmitter do the following:
> -----
> BOOLEAN intermediateEncryption = false
> IF jobconf.contains("mr.intermidate.encryption") THEN
>   intermediateEncryption = jobConf.getBoolean("mr.intermidate.encryption")
> ELSE
>   IF (I/O)Format INSTANCEOF File(I/O)Format THEN
>     intermediateEncryption = ANY File(I/O)Format HAS a Path with status isEncrypted()==TRUE
>   FI
>   jobConf.setBoolean("mr.intermidate.encryption", intermediateEncryption)
> FI



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

Mime
View raw message