hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yq...@apache.org
Subject hadoop git commit: HADOOP-13965. Groups should be consistent in using default group mapping class. Contributed by Yiqun Lin.
Date Thu, 19 Jan 2017 01:44:13 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 2bf4c6e2d -> 383aa9c9f


HADOOP-13965. Groups should be consistent in using default group mapping class. Contributed
by Yiqun Lin.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/383aa9c9
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/383aa9c9
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/383aa9c9

Branch: refs/heads/trunk
Commit: 383aa9c9f55983cdb1c225b2ed22f6f48616cb9c
Parents: 2bf4c6e
Author: Yiqun Lin <yqlin@apache.org>
Authored: Thu Jan 19 09:42:56 2017 +0800
Committer: Yiqun Lin <yqlin@apache.org>
Committed: Thu Jan 19 09:42:56 2017 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/security/Groups.java | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/383aa9c9/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/Groups.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/Groups.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/Groups.java
index 32660c2..596259a 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/Groups.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/Groups.java
@@ -103,12 +103,11 @@ public class Groups {
   }
 
   public Groups(Configuration conf, final Timer timer) {
-    impl = 
-      ReflectionUtils.newInstance(
-          conf.getClass(CommonConfigurationKeys.HADOOP_SECURITY_GROUP_MAPPING, 
-                        ShellBasedUnixGroupsMapping.class, 
-                        GroupMappingServiceProvider.class), 
-          conf);
+    impl = ReflectionUtils.newInstance(
+        conf.getClass(CommonConfigurationKeys.HADOOP_SECURITY_GROUP_MAPPING,
+            JniBasedUnixGroupsMappingWithFallback.class,
+            GroupMappingServiceProvider.class),
+        conf);
 
     cacheTimeout = 
       conf.getLong(CommonConfigurationKeys.HADOOP_SECURITY_GROUPS_CACHE_SECS, 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message