[
https://issues.apache.org/jira/browse/DRILL-5391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15985046#comment-15985046
]
ASF GitHub Bot commented on DRILL-5391:
---------------------------------------
GitHub user arina-ielchiieva opened a pull request:
https://github.com/apache/drill/pull/820
DRILL-5391: CTAS: make folder and file permission configurable
1. Added new configuration option exec.persistent_table.umask which
defaults to 002. User can modify this option on session or system level. If
umask was set incorrectly, default umask will be used (002) and error will be
logged.
2. Refactored `StorageStrategy` to use umask.
3. Added appropriate unit tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/arina-ielchiieva/drill DRILL-5391
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/820.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #820
----
commit 3ed005864cdac8d7d04d61307fe1493b38e1ea97
Author: Arina Ielchiieva <[email protected]>
Date: 2017-04-26T13:27:19Z
DRILL-5391: CTAS: make folder and file permission configurable
----
> CTAS: make folder and file permission configurable
> --------------------------------------------------
>
> Key: DRILL-5391
> URL: https://issues.apache.org/jira/browse/DRILL-5391
> Project: Apache Drill
> Issue Type: Improvement
> Affects Versions: 1.9.0, 1.10.0
> Environment: CentOS 7, HDP 2.4
> Reporter: Chua Tianxiang
> Assignee: Arina Ielchiieva
> Priority: Minor
> Labels: doc-impacting
> Attachments: Drill-1-10.PNG, Drill-1-9.PNG
>
>
> In Drill 1.9, CREATE TABLE AS creates a folder with permissions 777, while on
> Drill 1.10, the same commands creates a folder with permission 775. Both
> drills are started with root user, installed on the same servers and accesses
> the same HDFS.
> Scope:
> Added new configuration option exec.persistent_table.umask which default to
> 002.
> Default directory permission will be 775, file - 664.
> User can modify this option on session or system level.
> If umask was set incorrectly, default umask will be used (002) and error will
> be logged.
> For example, if user wants to create table will full access to folders and
> files, he needs to update umask:
> alter session set `exec.persistent_table.umask` = '000';
> In this case folders will be created with 777 permission, files with 666.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)