> On 六月 27, 2017, 5:48 p.m., Ramesh Mani wrote: > > hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizerBase.java > > Lines 67 (patched) > > <https://reviews.apache.org/r/60454/diff/1/?file=1763405#file1763405line67> > > > > Falling back to Native SQLStdHiveAccessControler is not a ideal way to > > resolve this. HiveAuthorizer should provide the necessary implementation > > for showPrivileges(). This has to be discussed with Hive comitter also. > > pengjianhua wrote: > Ok. I will rebuild the patch and seek Thejas M Nair's advice.
Hi Thejas M Nair and Ramesh Mani; I have pdated the patch ,overwrite the showPrivileges method in RangerHiveAuthorizer No used SQLStdHiveAccessControler interface ?Please review again Thanks. - pengjianhua ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/60454/#review179001 ----------------------------------------------------------- On 六月 27, 2017, 10:57 a.m., pengjianhua wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/60454/ > ----------------------------------------------------------- > > (Updated 六月 27, 2017, 10:57 a.m.) > > > 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: 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 > >