HADOOP-13965. Groups should be consistent in using default group mapping class. Contributed by Yiqun Lin.
This commit is contained in:
parent
2bf4c6e2d6
commit
383aa9c9f5
@ -103,12 +103,11 @@ public Groups(Configuration conf) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Groups(Configuration conf, final Timer timer) {
|
public Groups(Configuration conf, final Timer timer) {
|
||||||
impl =
|
impl = ReflectionUtils.newInstance(
|
||||||
ReflectionUtils.newInstance(
|
conf.getClass(CommonConfigurationKeys.HADOOP_SECURITY_GROUP_MAPPING,
|
||||||
conf.getClass(CommonConfigurationKeys.HADOOP_SECURITY_GROUP_MAPPING,
|
JniBasedUnixGroupsMappingWithFallback.class,
|
||||||
ShellBasedUnixGroupsMapping.class,
|
GroupMappingServiceProvider.class),
|
||||||
GroupMappingServiceProvider.class),
|
conf);
|
||||||
conf);
|
|
||||||
|
|
||||||
cacheTimeout =
|
cacheTimeout =
|
||||||
conf.getLong(CommonConfigurationKeys.HADOOP_SECURITY_GROUPS_CACHE_SECS,
|
conf.getLong(CommonConfigurationKeys.HADOOP_SECURITY_GROUPS_CACHE_SECS,
|
||||||
|
Loading…
Reference in New Issue
Block a user