Skip to content

Commit 0ea47b1

Browse files
committed
YARN-11433. Fix CheckStyle.
1 parent 9c4e9ac commit 0ea47b1

File tree

3 files changed

+7
-4
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server
    • hadoop-yarn-server-globalpolicygenerator/src/test/java/org/apache/hadoop/yarn/server/globalpolicygenerator
    • hadoop-yarn-server-router/src

3 files changed

+7
-4
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator/src/test/java/org/apache/hadoop/yarn/server/globalpolicygenerator/TestGlobalPolicyGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void testGPGCLI() {
7272
assertTrue(dataErr.toString().contains(
7373
"Usage: yarn gpg [-format-policy-store]"));
7474
}
75-
75+
7676
@Test
7777
public void testUserProvidedUGIConf() throws Exception {
7878
String errMsg = "Invalid attribute value for " +

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ public static void main(String[] argv) {
256256
// TODO: YARN-11548. [Federation] Router Supports Format FederationStateStore.
257257
System.err.println("format-state-store is not yet supported.");
258258
} else if (argv[0].equals("-remove-application-from-state-store") && argv.length == 2) {
259-
// TODO: YARN-11547. [Federation] Router Supports Remove individual application records from FederationStateStore.
259+
// TODO: YARN-11547. [Federation]
260+
// Router Supports Remove individual application records from FederationStateStore.
260261
System.err.println("remove-application-from-state-store is not yet supported.");
261262
} else {
262263
printUsage(System.err);
@@ -314,6 +315,7 @@ public FedAppReportFetcher getFetcher() {
314315
}
315316

316317
private static void printUsage(PrintStream out) {
317-
out.println("Usage: yarn router [-format-state-store] | [-remove-application-from-state-store <appId>]");
318+
out.println("Usage: yarn router [-format-state-store] | " +
319+
"[-remove-application-from-state-store <appId>]");
318320
}
319321
}

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/TestRouter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ public void testRouterCLI() {
401401
System.setErr(new PrintStream(dataErr));
402402
Router.main(new String[]{"-help", "-format-state-store"});
403403
assertTrue(dataErr.toString().contains(
404-
"Usage: yarn router [-format-state-store] | [-remove-application-from-state-store <appId>]"));
404+
"Usage: yarn router [-format-state-store] | " +
405+
"[-remove-application-from-state-store <appId>]"));
405406
}
406407
}

0 commit comments

Comments
 (0)