Skip to content

Commit

Permalink
Update UserGroupInformation.java
Browse files Browse the repository at this point in the history
  • Loading branch information
MEILIDEKCL authored Jul 26, 2022
1 parent f893ae9 commit eb92779
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ private static synchronized void initialize(Configuration conf,
authenticationMethod = SecurityUtil.getAuthenticationMethod(conf);
long cacheTimeout = conf.getLong(HADOOP_SECURITY_GROUPS_CACHE_SECS, HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT) * 1000;
if (cacheTimeout <=0 ){
throw new IllegalArgumentException("hadoop.security.groups.cache.secs should be larger than 0",
new IllegalArgumentException("hadoop.security.groups.cache.secs should be larger than 0"));
throw new IllegalArgumentException("hadoop.security.groups.cache.secs should be larger than 0", new IllegalArgumentException("hadoop.security.groups.cache.secs should be larger than 0"));
}
if (overrideNameRules || !HadoopKerberosName.hasRulesBeenSet()) {
try {
Expand Down

0 comments on commit eb92779

Please sign in to comment.