hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Yates (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-5526) Optional file permission settings
Date Tue, 06 Mar 2012 07:34:57 GMT

    [ https://issues.apache.org/jira/browse/HBASE-5526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223054#comment-13223054

Jesse Yates commented on HBASE-5526:

Problem is we make calls to o.a.hadoop.fs.FileSystem.create(...) or FileSystem.mkdirs(Path),
which make a call to FsPermissions.getDefault() in those methods. 

The meat of the patch above is to change the call to actually pass in an instance of FsPermissions,
rather than taking the default, which seems necessary to change if we want to apply a umask
since that method call is just:

  /** Get the default permission. */
  public static FsPermission getDefault() {
    return new FsPermission((short)0777);

which means we would still need to replace a bunch of the calls.
> Optional file permission settings
> ---------------------------------
>                 Key: HBASE-5526
>                 URL: https://issues.apache.org/jira/browse/HBASE-5526
>             Project: HBase
>          Issue Type: New Feature
>          Components: regionserver
>            Reporter: Jesse Yates
>            Assignee: Jesse Yates
>             Fix For: 0.94.0
>         Attachments: java_HBASE-5526.patch
> Currently many all the files created by the HBase user are just written using the default
file permissions granted by hdfs. However, it is often times adventageous to only allow a
subset of the world to view the actual data written by hbase when scanning the raw hdfs files.

> This ticket covers setting permissions for files written to hdfs that are storing actual
user data, as opposed to _all_ files written to hdfs as many of them contain non-identifiable

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message