-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60454/
-----------------------------------------------------------
(Updated 七月 14, 2017, 8:02 a.m.)
Review request for ranger, Colm O hEigeartaigh, Ramesh Mani, Thejas Nair,
Velmurugan Periasamy, and Qiang Zhang.
Changes
-------
Update patch ,Overwrite the showPrivileges method in RangerHiveAuthorizer No
used SQLStdHiveAccessControler interface.
Bugs: RANGER-1669
https://issues.apache.org/jira/browse/RANGER-1669
Repository: ranger
Description
-------
We need to support the original functionality of hive,
1.Scene: the original hive supports sql:show grant user glc;
2.Error: jdbc:hive2://10.43.182.241:10000> show grant user glc;
Error: Error while processing statement: FAILED: Execution Error, return code 1
from org.apache.hadoop.hive.ql.exec.DDLTask. showPrivileges() not implemented
in Ranger HiveAuthorizer (state=08S01,code=1)
3.Solution: When you integrate the Ranger plug-in into hive, you can't execute
show grant user glc.
Modify RangerHiveAuthorizerBase.java to achieve the specific implementation of
showPrivileges,
4.The modified results can continue to support the original functionality of
the hive.
Diffs (updated)
-----
hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
56ef187
Diff: https://reviews.apache.org/r/60454/diff/3/
Changes: https://reviews.apache.org/r/60454/diff/2-3/
Testing
-------
tested it
Thanks,
pengjianhua