Repository: incubator-sentry
Updated Branches:
  refs/heads/master a48cc8c43 -> 14e6bdaba


SENTRY-736: Add a new constructor to HadoopGroupMappingService (GuoquanShen, 
reviewed by Dapeng Sun)


Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/14e6bdab
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/14e6bdab
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/14e6bdab

Branch: refs/heads/master
Commit: 14e6bdaba7b1bf2cd1c342f908c00c005e14521f
Parents: a48cc8c
Author: Guoquan Shen <[email protected]>
Authored: Fri May 15 11:43:08 2015 +0800
Committer: Guoquan Shen <[email protected]>
Committed: Fri May 15 11:43:08 2015 +0800

----------------------------------------------------------------------
 .../apache/sentry/provider/common/HadoopGroupMappingService.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/14e6bdab/sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/HadoopGroupMappingService.java
----------------------------------------------------------------------
diff --git 
a/sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/HadoopGroupMappingService.java
 
b/sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/HadoopGroupMappingService.java
index 3347ffc..14e2d05 100644
--- 
a/sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/HadoopGroupMappingService.java
+++ 
b/sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/HadoopGroupMappingService.java
@@ -36,6 +36,10 @@ public class HadoopGroupMappingService implements 
GroupMappingService {
     this.groups = groups;
   }
 
+  public HadoopGroupMappingService(Configuration conf, String resource) {
+    this(Groups.getUserToGroupsMappingService(conf));
+  }
+
   @Override
   public Set<String> getGroups(String user) {
     try {

Reply via email to