Skip to content

Commit 27ace98

Browse files
committed
YARN-9013. Fix CheckStyle.
1 parent 36317d1 commit 27ace98

File tree

3 files changed

+4
-5
lines changed
  • hadoop-yarn-project/hadoop-yarn

3 files changed

+4
-5
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4267,7 +4267,7 @@ public static boolean isAclEnabled(Configuration conf) {
42674267
*/
42684268
public static final String ROUTER_CLIENTRM_SUBMIT_RETRY =
42694269
ROUTER_PREFIX + "submit.retry";
4270-
public static final int DEFAULT_ROUTER_CLIENTRM_SUBMIT_RETRY = 3;
4270+
public static final int DEFAULT_ROUTER_CLIENTRM_SUBMIT_RETRY = 1;
42714271

42724272
/**
42734273
* GetNewApplication and SubmitApplication request retry interval time.
@@ -4367,7 +4367,7 @@ public static boolean isAclEnabled(Configuration conf) {
43674367
* the default value is 0s.
43684368
*/
43694369
public static final long DEFAULT_ROUTER_USER_CLIENT_THREAD_POOL_KEEP_ALIVE_TIME =
4370-
TimeUnit.SECONDS.toMillis(0); // 0s
4370+
TimeUnit.SECONDS.toMillis(30); // 0s
43714371

43724372
/** The address of the Router web application. */
43734373
public static final String ROUTER_WEBAPP_ADDRESS =

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/yarn-default.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5132,10 +5132,10 @@
51325132

51335133
<property>
51345134
<name>yarn.router.interceptor.user-thread-pool.keep-alive-time</name>
5135-
<value>0s</value>
5135+
<value>30s</value>
51365136
<description>
51375137
This configurable is used to set the keepAliveTime of the thread pool of the interceptor.
5138-
Default is 0s.
5138+
Default is 30s.
51395139
</description>
51405140
</property>
51415141

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator/src/main/java/org/apache/hadoop/yarn/server/globalpolicygenerator/applicationcleaner/ApplicationCleaner.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
package org.apache.hadoop.yarn.server.globalpolicygenerator.applicationcleaner;
2020

2121
import java.util.HashSet;
22-
import java.util.List;
2322
import java.util.Set;
2423

2524
import org.apache.commons.lang3.time.DurationFormatUtils;

0 commit comments

Comments
 (0)