HADOOP-13965. Groups should be consistent in using default group mapping class. Contributed by Yiqun Lin.
(cherry picked from commit 383aa9c9f5
)
This commit is contained in:
parent
ea3c3d9022
commit
1b046fb26f
|
@ -102,12 +102,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,
|
||||
|
|
Loading…
Reference in New Issue