[
https://issues.apache.org/jira/browse/RANGER-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15684962#comment-15684962
]
Yan commented on RANGER-1210:
-----------------------------
A review request has been created at: https://reviews.apache.org/r/53967/
> Ranger Hive Plugin does not throw an exception when an INSERT/DELETE grant is
> issued from beeline
> -------------------------------------------------------------------------------------------------
>
> Key: RANGER-1210
> URL: https://issues.apache.org/jira/browse/RANGER-1210
> Project: Ranger
> Issue Type: Bug
> Components: plugins
> Affects Versions: 0.6.1
> Reporter: Yan
> Priority: Minor
>
> beeline>grant insert on test10 to user userx;
> returns OK. But actually the hive log has a warning entry:
> grant/revoke: unexpected privilege type 'DELETE'. Ignored
> The policy is actually created but with no policy items. While the "UPDATE"
> grant properly sets up the policy item.
> According to
> https://cwiki.apache.org/confluence/display/RANGER/Hive+Commands+to+Ranger+Permission+Mapping
> Both INSERT and DELETE should be mapped to UPDATE.
> What user experiences is that the grant of INSERT/DELETE has no effect at all
> even the return status is good.
> So we should either throw an exception, or map the INSERT/DELETE to UPDATE in
> the "createGrantRevokeData" method of the "RangerHiveAuthorizer" class.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)