-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/34002/#review83344
-----------------------------------------------------------



sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/HadoopGroupMappingService.java
<https://reviews.apache.org/r/34002/#comment134316>

    This construct is mandatory for SentryPolicyStoreProcessor, and I think 
there is no user using the HadoopGroupMappingService for now, there will be an 
exception like the following:
    java.lang.NoSuchMethodException: 
org.apache.sentry.provider.common.HadoopGroupMappingService.<init>(org.apache.hadoop.conf.Configuration,
 java.lang.String)
    
    I agree Gregory to make an abstract class with the required constructor(s) 
defined.



sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/HadoopGroupMappingService.java
<https://reviews.apache.org/r/34002/#comment134317>

    Do you mean hadoopConf.addResource(**resource**)?



sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyStoreProcessor.java
<https://reviews.apache.org/r/34002/#comment134318>

    How about initial the groupMappingService in the 
SentryPolicyStoreProcessor's constructor?


- Colin Ma


On May 11, 2015, 5:46 p.m., Prasad Mujumdar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/34002/
> -----------------------------------------------------------
> 
> (Updated May 11, 2015, 5:46 p.m.)
> 
> 
> Review request for sentry, Colin Ma and Gregory Chanan.
> 
> 
> Bugs: SENTRY-695
>     https://issues.apache.org/jira/browse/SENTRY-695
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> Sentry service doesn't read default configuration resource. As a result any 
> group mapping related properties (eg ldap properties etc) are not loaded from 
> hadoop config files like core-site.xml. These properties have to be 
> duplicated in sentry-site as well. When Sentry service is using underlying 
> Hadoop group mapping, it should read the hadoop configuration which might 
> include group mapping specific properties.
> 
> This patch is enabling Sentry's Hadoop Group mapping to load the hadoop 
> configuration files if available. Also the group mapping service instance is 
> Sentry is cached so that we don't have to instantiate it for every RPC 
> request.
> 
> 
> Diffs
> -----
> 
>   
> sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/HadoopGroupMappingService.java
>  3347ffc 
>   
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyStoreProcessor.java
>  30792f3 
> 
> Diff: https://reviews.apache.org/r/34002/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Prasad Mujumdar
> 
>

Reply via email to