sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lenni Kuff (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SENTRY-1139) EXPLAIN ALTER TABLE does not respect Sentry privileges in Hive
Date Fri, 18 Mar 2016 16:43:33 GMT
Lenni Kuff created SENTRY-1139:
----------------------------------

             Summary: EXPLAIN ALTER TABLE does not respect Sentry privileges in Hive
                 Key: SENTRY-1139
                 URL: https://issues.apache.org/jira/browse/SENTRY-1139
             Project: Sentry
          Issue Type: Bug
          Components: Hive Binding
    Affects Versions: 1.7.0
            Reporter: Lenni Kuff


It seems that EXPLAIN on an ALTER TABLE statement fails with invalid privileges in Hive when
the user has full privileges on the table. Executing the the statement without EXPLAIN succeeds.


Example:
{code}
0: jdbc:hive2://XXX.cloudera.com:> explain alter table mydummy drop partition(year='20151212');
Error: Error while compiling statement: FAILED: SemanticException No valid privileges
 Required privileges for this query: (state=42000,code=40000)
0: jdbc:hive2://XXXX.cloudera.com:> alter table mydummy drop partition(year='20151212');
       
No rows affected (0.286 seconds)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message