[jira] [Updated] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

2012-04-12 Thread Rohini Palaniswamy (Updated) (JIRA)

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

Rohini Palaniswamy updated HIVE-2936:
-

Attachment: HIVE-2936-2.patch

Patch with Ashutosh's review comments incorporated. 

 Warehouse table subdirectories should inherit the group permissions of the 
 warehouse parent directory
 -

 Key: HIVE-2936
 URL: https://issues.apache.org/jira/browse/HIVE-2936
 Project: Hive
  Issue Type: New Feature
  Components: Metastore
Reporter: Rohini Palaniswamy
Assignee: Rohini Palaniswamy
 Fix For: 0.9.0

 Attachments: HIVE-2504-1.patch, HIVE-2504.patch, HIVE-2504.patch, 
 HIVE-2936-2.patch


 When the Hive Metastore creates a subdirectory in the Hive warehouse for
 a new table it does so with the default HDFS permissions derived from 
 dfs.umask or dfs.umaskmode. There should be a option to inherit the 
 permissions of the parent directory (default warehouse or custom database 
 directory) so that the table directories have the same permissions as the 
 database directories. 

--
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




[jira] [Updated] (HIVE-2504) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

2012-04-09 Thread Rohini Palaniswamy (Updated) (JIRA)

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

Rohini Palaniswamy updated HIVE-2504:
-

Attachment: HIVE-2504-1.patch

Added hive.warehouse.subdir.inherit.perms which is false by default. The 
default behaviour of hive-0.8 stays. i.e directories will be created with the 
permissions of dfs.umask or dfs.umaskmode. If 
hive.warehouse.subdir.inherit.perms is set to true, then table directories will 
inherit the permission of the default warehouse or the custom database 
location. This comes in handy when you have databases created with different 
permissions or if the warehouse directory has permissions like 775. 

Ashutosh,
   Your argument of warehouse having 700 permissions will not hold. If 
warehouse has 700 and even if the table directories have 755 or 775 they will 
not be accessible by any one other than the owner because if you don't have 
access to the parent directory you cannot access sub-directories in dfs (Same 
as Linux). So the warehouse has to be at least 755 or 750 to start with. So 
with the initial patch, the sub-directories would have been created with 775. 
But with my patch, they would have been created the same as warehouse 
directory(755 or 750) which would still allow read access to group. But anyways 
to avoid any confusion and provide backward compatibility added the new config.

 Warehouse table subdirectories should inherit the group permissions of the 
 warehouse parent directory
 -

 Key: HIVE-2504
 URL: https://issues.apache.org/jira/browse/HIVE-2504
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Reporter: Carl Steinbach
Assignee: Rohini Palaniswamy
 Fix For: 0.9.0

 Attachments: HIVE-2504-1.patch, HIVE-2504.patch, HIVE-2504.patch


 When the Hive Metastore creates a subdirectory in the Hive warehouse for
 a new table it does so with the default HDFS permissions. Since the default
 dfs.umask value is 022, this means that the new subdirectory will not inherit 
 the
 group write permissions of the hive warehouse directory.
 We should make the umask used by Warehouse.mkdirs() configurable, and set
 it to use a default value of 002.

--
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




[jira] [Updated] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

2012-04-09 Thread Rohini Palaniswamy (Updated) (JIRA)

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

Rohini Palaniswamy updated HIVE-2936:
-

 Description: 
When the Hive Metastore creates a subdirectory in the Hive warehouse for
a new table it does so with the default HDFS permissions derived from dfs.umask 
or dfs.umaskmode. There should be a option to inherit the permissions of the 
parent directory (default warehouse or custom database directory) so that the 
table directories have the same permissions as the database directories. 


  was:
When the Hive Metastore creates a subdirectory in the Hive warehouse for
a new table it does so with the default HDFS permissions. Since the default
dfs.umask value is 022, this means that the new subdirectory will not inherit 
the
group write permissions of the hive warehouse directory.

We should make the umask used by Warehouse.mkdirs() configurable, and set
it to use a default value of 002.


  Issue Type: New Feature  (was: Bug)
Hadoop Flags:   (was: Reviewed)

 Warehouse table subdirectories should inherit the group permissions of the 
 warehouse parent directory
 -

 Key: HIVE-2936
 URL: https://issues.apache.org/jira/browse/HIVE-2936
 Project: Hive
  Issue Type: New Feature
  Components: Metastore
Reporter: Rohini Palaniswamy
Assignee: Rohini Palaniswamy
 Fix For: 0.9.0

 Attachments: HIVE-2504-1.patch, HIVE-2504.patch, HIVE-2504.patch


 When the Hive Metastore creates a subdirectory in the Hive warehouse for
 a new table it does so with the default HDFS permissions derived from 
 dfs.umask or dfs.umaskmode. There should be a option to inherit the 
 permissions of the parent directory (default warehouse or custom database 
 directory) so that the table directories have the same permissions as the 
 database directories. 

--
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




[jira] [Updated] (HIVE-2504) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

2012-04-05 Thread Rohini Palaniswamy (Updated) (JIRA)

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

Rohini Palaniswamy updated HIVE-2504:
-

Attachment: HIVE-2504.patch

Made the newly created subdirectories get the same permissions as the parent by 
setting it explicitly on them. The table directories will get the permissions 
of the database directory and the partition directories will get the 
permissions of the table directory.

Removed the hive.files.umask.value configuration parameter. 

 Warehouse table subdirectories should inherit the group permissions of the 
 warehouse parent directory
 -

 Key: HIVE-2504
 URL: https://issues.apache.org/jira/browse/HIVE-2504
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Reporter: Carl Steinbach
Assignee: Rohini Palaniswamy
 Fix For: 0.9.0

 Attachments: HIVE-2504.patch, HIVE-2504.patch


 When the Hive Metastore creates a subdirectory in the Hive warehouse for
 a new table it does so with the default HDFS permissions. Since the default
 dfs.umask value is 022, this means that the new subdirectory will not inherit 
 the
 group write permissions of the hive warehouse directory.
 We should make the umask used by Warehouse.mkdirs() configurable, and set
 it to use a default value of 002.

--
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




[jira] [Updated] (HIVE-2504) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

2012-04-05 Thread Rohini Palaniswamy (Updated) (JIRA)

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

Rohini Palaniswamy updated HIVE-2504:
-

Hadoop Flags:   (was: Reviewed)
  Status: Patch Available  (was: Reopened)

Unit tests pass with ant clean package test

 Warehouse table subdirectories should inherit the group permissions of the 
 warehouse parent directory
 -

 Key: HIVE-2504
 URL: https://issues.apache.org/jira/browse/HIVE-2504
 Project: Hive
  Issue Type: Bug
  Components: Metastore
Reporter: Carl Steinbach
Assignee: Rohini Palaniswamy
 Fix For: 0.9.0

 Attachments: HIVE-2504.patch, HIVE-2504.patch


 When the Hive Metastore creates a subdirectory in the Hive warehouse for
 a new table it does so with the default HDFS permissions. Since the default
 dfs.umask value is 022, this means that the new subdirectory will not inherit 
 the
 group write permissions of the hive warehouse directory.
 We should make the umask used by Warehouse.mkdirs() configurable, and set
 it to use a default value of 002.

--
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