You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Kai Zheng (JIRA)" <ji...@apache.org> on 2012/12/15 17:08:12 UTC

[jira] [Commented] (HIVE-3808) Failed to create table in database due to HDFS permission even authorized to create

    [ https://issues.apache.org/jira/browse/HIVE-3808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13533069#comment-13533069 ] 

Kai Zheng commented on HIVE-3808:
---------------------------------

This seems to be a known issue or limit in Hive authorization. I still opened this for further discussion, or reference.

Obviously when Hive user, group or role is granted to CREATE privilege on database, the principal should also be authorized with write permission to the corresponding database file automatically. Of course this can be done by user manually executing chmod stuff as an extra step.

To resolve this:
1. One approach would be not to allow granting CREATE privilege to others. In HBase, only super users can create tables.
2. Another idea would be to enhance HDFS permission mechanism so that allowing more users, groups to access files with certain permissions while at the same time disallowing others.

                
> Failed to create table in database due to HDFS permission even authorized to create
> -----------------------------------------------------------------------------------
>
>                 Key: HIVE-3808
>                 URL: https://issues.apache.org/jira/browse/HIVE-3808
>             Project: Hive
>          Issue Type: Improvement
>          Components: Authorization
>    Affects Versions: 0.9.0
>            Reporter: Kai Zheng
>
> User is already authorized to create table in database in HDFS. But when creating table is failed, due to HDFS file permission,although the authorization check was passed. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira