Skip to content

Commit 07f6090

Browse files
author
slfan1989
committed
YARN-11122. Fix CheckStyle.
1 parent 6630ce6 commit 07f6090

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ public final class RouterMetrics {
7676
@Metric("Total number of successful Retrieved getClusterMetrics and "
7777
+ "latency(ms)")
7878
private MutableRate totalSucceededGetClusterMetricsRetrieved;
79-
@Metric("Total number of successful Retrieved getClusterNodes and "
80-
+ "latency(ms)")
79+
@Metric("Total number of successful Retrieved getClusterNodes and latency(ms)")
8180
private MutableRate totalSucceededGetClusterNodesRetrieved;
8281

8382
/**

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,20 @@
1717
*/
1818
package org.apache.hadoop.yarn.server.router.clientrm;
1919

20-
import java.util.*;
20+
import java.util.Collection;
21+
import java.util.HashMap;
22+
import java.util.Map;
23+
import java.util.List;
24+
import java.util.ArrayList;
2125

2226
import org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsResponse;
2327
import org.apache.hadoop.yarn.api.protocolrecords.GetClusterMetricsResponse;
2428
import org.apache.hadoop.yarn.api.protocolrecords.GetClusterNodesResponse;
25-
import org.apache.hadoop.yarn.api.records.*;
29+
import org.apache.hadoop.yarn.api.records.ApplicationId;
30+
import org.apache.hadoop.yarn.api.records.ApplicationReport;
31+
import org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport;
32+
import org.apache.hadoop.yarn.api.records.YarnClusterMetrics;
33+
import org.apache.hadoop.yarn.api.records.NodeReport;
2634
import org.apache.hadoop.yarn.server.uam.UnmanagedApplicationManager;
2735
import org.apache.hadoop.yarn.util.Records;
2836
import org.apache.hadoop.yarn.util.resource.Resources;

0 commit comments

Comments
 (0)