Skip to content

Commit 358a4a6

Browse files
author
slfan1989
committed
YARN-11371. Fix CheckStyle.
1 parent 4fe700c commit 358a4a6

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/RouterServerUtil.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
package org.apache.hadoop.yarn.server.router;
2020

21-
import org.apache.commons.collections.CollectionUtils;
22-
import org.apache.commons.collections.MapUtils;
2321
import org.apache.commons.lang3.math.NumberUtils;
2422
import org.apache.hadoop.classification.InterfaceAudience.Private;
2523
import org.apache.hadoop.classification.InterfaceAudience.Public;
@@ -29,9 +27,6 @@
2927
import org.apache.hadoop.util.StringUtils;
3028
import org.apache.hadoop.yarn.exceptions.YarnException;
3129
import org.apache.hadoop.yarn.exceptions.YarnRuntimeException;
32-
import org.apache.hadoop.yarn.server.federation.policies.FederationPolicyUtils;
33-
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterId;
34-
import org.apache.hadoop.yarn.server.federation.store.records.SubClusterInfo;
3530
import org.slf4j.Logger;
3631
import org.slf4j.LoggerFactory;
3732

@@ -40,8 +35,6 @@
4035
import java.util.ArrayList;
4136
import java.util.Collection;
4237
import java.util.List;
43-
import java.util.Map;
44-
import java.util.Random;
4538
import java.io.IOException;
4639

4740
/**

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/webapp/FederationInterceptorREST.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,9 @@ public Response submitApplication(ApplicationSubmissionContextInfo newApp,
481481
* @param blackList Blacklist avoid repeated calls to unavailable subCluster.
482482
* @param hsr HttpServletRequest.
483483
* @param retryCount number of retries.
484-
* @return Get response, If the response is empty or status not equal SC_ACCEPTED, the request fails,
485-
* if the response is not empty and status equal SC_OK, the request is successful.
484+
* @return Get response, If the response is empty or status not equal SC_ACCEPTED,
485+
* the request fails, if the response is not empty and status equal SC_OK,
486+
* the request is successful.
486487
* @throws YarnException yarn exception.
487488
* @throws IOException io error.
488489
*/

0 commit comments

Comments
 (0)