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

Lenni Kuff commented on SENTRY-1015:
------------------------------------

[~hahao] - No need to post a CR

> Improve Sentry + Hive error message when user does not have sufficient 
> privileges to perform an operation
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: SENTRY-1015
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1015
>             Project: Sentry
>          Issue Type: Improvement
>            Reporter: Hao Hao
>            Assignee: Hao Hao
>         Attachments: SENTRY-1015.0.patch
>
>
> Sentry + Hive error message now is:
> {noformat}
> FAILED: SemanticException No valid privileges
>  User user2_1 does not have privileges for ALTERTABLE_PROPERTIES
> {noformat}
> Should add the required privileges in the exception message.
> Updated error message would be:
> {noformat}
> FAILED: SemanticException No valid privileges
>  User user2_1 does not have privileges for ALTERTABLE_PROPERTIES
>  The required privileges: Server=server1->Db=db_1->Table=tb1->action=alter;
> {noformat}



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

Reply via email to