hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-2818) Create table should check privilege of target database, not default database
Date Mon, 31 Mar 2014 22:13:19 GMT

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

Ashutosh Chauhan updated HIVE-2818:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.13.0
           Status: Resolved  (was: Patch Available)

This doesn't seem to be a problem any longer. Feel free to reopen if thats not the case.

> Create table should check privilege of target database, not default database
> ----------------------------------------------------------------------------
>
>                 Key: HIVE-2818
>                 URL: https://issues.apache.org/jira/browse/HIVE-2818
>             Project: Hive
>          Issue Type: Bug
>          Components: Authorization, Security
>    Affects Versions: 0.7.1
>            Reporter: Benyi Wang
>            Assignee: Navis
>             Fix For: 0.13.0
>
>         Attachments: HIVE-2818.1.patch.txt, HIVE-2818.2.patch.txt, HIVE-2818.3.patch.txt,
HIVE-2818.4.patch.txt, HIVE-2818.5.patch.txt, HIVE-2818.6.patch.txt
>
>
> Hive seems check the current database to determine the privilege of a statement when
you use fully qualified name like 'database.table'
>  
> {code}
> hive> set hive.security.authorization.enabled=true;
> hive> create database test_db;
> hive> grant all on database test_db to user test_user;
> hive> revoke all on database default from test_user;
> hive> use default;
> hive> create table test_db.new_table (id int);
> Authorization failed:No privilege 'Create' found for outputs { database:default}. Use
show grant to get more details.
> hive> use test_db;
> hive> create table test_db.new_table (id int);
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message