> On June 23, 2016, 12:07 a.m., Velmurugan Periasamy wrote: > > agents-audit/src/main/java/org/apache/ranger/audit/provider/MiscUtil.java, > > line 483 > > <https://reviews.apache.org/r/49123/diff/1/?file=1428154#file1428154line483> > > > > If always getLoginUser() is called, do we even need the (if > > ugiLoginUser == null) check?
There is a MiscUtil.setUGILoginUser() API to set ugiLoginUser. It is called by KMS and Solr plug-ins during initialization. This patch does not handle if ugiLoginUser is set explicitily using that API. - Abhay ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/49123/#review139182 ----------------------------------------------------------- On June 23, 2016, 12:01 a.m., Abhay Kulkarni wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/49123/ > ----------------------------------------------------------- > > (Updated June 23, 2016, 12:01 a.m.) > > > Review request for ranger, Madhan Neethiraj, Selvamohan Neethiraj, and > Velmurugan Periasamy. > > > Bugs: RANGER-1053 > https://issues.apache.org/jira/browse/RANGER-1053 > > > Repository: ranger > > > Description > ------- > > Policy downloads fail for HiveServer2 in secure cluster usually after 1 day > with HTTP code 401 (Not_Authorized). > > > Diffs > ----- > > agents-audit/src/main/java/org/apache/ranger/audit/provider/MiscUtil.java > 752a6df > > Diff: https://reviews.apache.org/r/49123/diff/ > > > Testing > ------- > > Updated hive policies in Ranger while during and after one day while > continuously running hiveserver2 in a kerberized cluster. Checked the plugin > logs to see that the policy downloads were successfully done and logged. > > > Thanks, > > Abhay Kulkarni > >
