-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60454/
-----------------------------------------------------------
Review request for ranger, Don Bosco Durai, Colm O hEigeartaigh, Ramesh Mani,
Velmurugan Periasamy, and Qiang Zhang.
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?0: 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
-----
hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizerBase.java
c313870
Diff: https://reviews.apache.org/r/60454/diff/1/
Testing
-------
tested it
Thanks,
pengjianhua