[
https://issues.apache.org/jira/browse/SENTRY-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hao Hao updated SENTRY-1015:
----------------------------
Description:
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}
was:
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:
> 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)