[
https://issues.apache.org/jira/browse/HBASE-5526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jesse Yates updated HBASE-5526:
-------------------------------
Attachment: java_HBASE-5526-v3.patch
Simpler patch than v2 - just covers up the hfiles, .regioninfo and .tableinfo.
The last was a bit more complicated than I would like as a TableDescriptor
doesn't implicitly have a configuration, but it manages.
The other oddity is that this patch takes a conf key when getting the
permissions - did this to help keep it abstracted out, but it could debatably
just drop that param and always look to using the default (and maybe have an
overloaded method that takes the first to check and then falls back on
hbase.data.umask if that value isn't set). Definitely up for debate here.
Throwing this up on RB as well.
> Configurable file and directory based umask
> -------------------------------------------
>
> 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-v2.patch, java_HBASE-5526-v3.patch,
> 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, to ensure only the
> correct user/group views the files and directories, we need to be able to
> apply a configurable umask to either directories or files.
> This ticket covers setting permissions for files written to dfs, as opposed
> to things like pid and log files.
> The impetus for this was to allow the web-user to view the directory
> structure of hbase, but not to actually see any of the actual data hbase is
> storing.
--
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