Skip to content

Commit eb92779

Browse files
authored
Update UserGroupInformation.java
1 parent f893ae9 commit eb92779

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,7 @@ private static synchronized void initialize(Configuration conf,
308308
authenticationMethod = SecurityUtil.getAuthenticationMethod(conf);
309309
long cacheTimeout = conf.getLong(HADOOP_SECURITY_GROUPS_CACHE_SECS, HADOOP_SECURITY_GROUPS_CACHE_SECS_DEFAULT) * 1000;
310310
if (cacheTimeout <=0 ){
311-
throw new IllegalArgumentException("hadoop.security.groups.cache.secs should be larger than 0",
312-
new IllegalArgumentException("hadoop.security.groups.cache.secs should be larger than 0"));
311+
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"));
313312
}
314313
if (overrideNameRules || !HadoopKerberosName.hasRulesBeenSet()) {
315314
try {

0 commit comments

Comments
 (0)