You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Rohini Palaniswamy (Created) (JIRA)" <ji...@apache.org> on 2012/04/09 21:57:17 UTC

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

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: Bug
          Components: Metastore
            Reporter: Rohini Palaniswamy
            Assignee: Chinna Rao Lalam
             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] [Commented] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Rohini Palaniswamy (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253009#comment-13253009 ] 

Rohini Palaniswamy commented on HIVE-2936:
------------------------------------------

 * The parent does not exist scenario can happen when you are creating databases with a location specified. Had the parent existence check because if you are creating  "CREATE DATABASE IF NOT EXISTS db1 LOCATION '/projects/myproj/data/db1'"; , there are chances that data directory does not exist. In that case, instead of finding the first top level directory that exists and using its permission, I let the directory be created with the default dfs umask applied permission. 

 * It is not safe to use fs.mkdirs(path, permission) because the dfs umask is applied on that permission in DFSClient which is not desired. We have been bitten by wrong permission issues because of using that API. It is always safer to do mkdirs() and then do a setPermission() if you are dealing with HDFS. 


                
> 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] [Commented] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Ashutosh Chauhan (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253019#comment-13253019 ] 

Ashutosh Chauhan commented on HIVE-2936:
----------------------------------------

I see. Agree on both points. Another point is this increases number on calls on nn, it will be good to reduce that if possible. How about following:
{code}
  boolean success = fs.mkdirs(f);
      if(success) {
        if (this.inheritPerms && fs.exists(f.getParent())) {
          try {
            fs.setPermission(f, fs.getFileStatus(f.getParent()).getPermission());
          } catch (IOException ioe) {
            LOG.equals("Failed to set permissions");
            success = false;
          }

        }
      } else {
        return fs.getFileStatus(f).isDir();
      }
      return success;
{code}

How about this. The case of returning false if you fail to set Permissions is not clear. I return false, what you think ?
                
> 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] [Commented] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Ashutosh Chauhan (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13252981#comment-13252981 ] 

Ashutosh Chauhan commented on HIVE-2936:
----------------------------------------

Looks good, couple of comments:
* I dont see a need of parent existence check, parent will always exists. / is parent of itself.
* fs.mkdirs() takes permission as an argument, so use that signature instead of first creating dirs and then setting perms. 

So, something like following:
{code}
 boolean success;
      if (this.inheritPerms) {
        success = fs.mkdirs(f, fs.getFileStatus(f.getParent()).getPermission());
      } else {
        success = fs.mkdirs(f);
      }
      return success;
{code}
                
> 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-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Rohini Palaniswamy (Updated) (JIRA)" <ji...@apache.org>.
     [ 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] [Commented] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Rohini Palaniswamy (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253027#comment-13253027 ] 

Rohini Palaniswamy commented on HIVE-2936:
------------------------------------------

 * The else call is not required. If the path already existed and was a directory, mkdirs returns true else it throws FileAlreadyExistsException. That is why need to check before if it exists. If the directory already existed, we should not be setting the parent's permission on it. 

 * The fs.exists(f.getParent()) needs to be done before the fs.mkdirs() else it will always be true. One thing that can be done is remove fs.exists(f.getParent()) check and always do a setPermission. If the parent directory was created during the mkdirs(), then the setPermission call will be redundant and just set the same permission again but if the parent existed, then instead of two calls there will be only one call. 

{code}
if (this.inheritPerms && fs.exists(f)) {
        return fs.getFileStatus(f).isDir();
      }
      boolean success = fs.mkdirs(f);
      if (this.inheritPerms && success) {
        // Set the permission of parent directory.
        fs.setPermission(f, fs.getFileStatus(f.getParent()).getPermission());
      }
      return success;
{code}

With this, without inheritPerms
    * 1 call to create the directory. fs.mkdirs() will throw an exception if the path already existed and was a file. 

with inheritPerms
    * There will be 2 calls if the path already existed.
    * There will be 3 calls, to check and create the path and set the permission. 

Does that sound ok?
                
> 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] [Commented] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Ashutosh Chauhan (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253055#comment-13253055 ] 

Ashutosh Chauhan commented on HIVE-2936:
----------------------------------------

+1 will commit, if tests pass.
                
> 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] [Commented] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253991#comment-13253991 ] 

Hudson commented on HIVE-2936:
------------------------------

Integrated in Hive-trunk-h0.21 #1372 (See [https://builds.apache.org/job/Hive-trunk-h0.21/1372/])
    HIVE-2936 : Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory (Rohini via Ashutosh Chauhan) (Revision 1325791)

     Result = ABORTED
hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1325791
Files : 
* /hive/trunk/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
* /hive/trunk/conf/hive-default.xml.template
* /hive/trunk/metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java
* /hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestEmbeddedHiveMetaStore.java
* /hive/trunk/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java

                
> 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] [Commented] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Rohini Palaniswamy (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250123#comment-13250123 ] 

Rohini Palaniswamy commented on HIVE-2936:
------------------------------------------

Created a clone of HIVE-2904 to address some issues with inheriting permissions. Please refer to HIVE-2904 for prior history and discussions. 

Description of changes:
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.

                
> 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] [Commented] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Ashutosh Chauhan (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253041#comment-13253041 ] 

Ashutosh Chauhan commented on HIVE-2936:
----------------------------------------

{code}
if (this.inheritPerms) {
        try {
           return fs.getFileStatus(f).isDir();
        } catch (FileNotFoundException fnfe) {}
      }

      boolean success = fs.mkdirs(f);

      if (this.inheritPerms && success) {
        // Set the permission of parent directory.
        fs.setPermission(f, fs.getFileStatus(f.getParent()).getPermission());
      }
      return success;
{code}

this improves on urs by just doing 1 call for "inheritPerms on existing path."
                
> 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] [Assigned] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Rohini Palaniswamy (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rohini Palaniswamy reassigned HIVE-2936:
----------------------------------------

    Assignee: Rohini Palaniswamy  (was: Chinna Rao Lalam)
    
> 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: Bug
>          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. 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

Posted by "Rohini Palaniswamy (Updated) (JIRA)" <ji...@apache.org>.
     [ 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] [Resolved] (HIVE-2936) Warehouse table subdirectories should inherit the group permissions of the warehouse parent directory

Posted by "Ashutosh Chauhan (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashutosh Chauhan resolved HIVE-2936.
------------------------------------

    Resolution: Fixed

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