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 32660c2268..596259a726 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 Groups(Configuration conf) { } 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,