Skip to content

Commit 0dee8ac

Browse files
committed
HADOOP-15984. Improve Some Code.
1 parent dde4dee commit 0dee8ac

File tree

9 files changed

+162
-2
lines changed

9 files changed

+162
-2
lines changed

hadoop-tools/hadoop-archive-logs/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,26 @@
142142
<scope>test</scope>
143143
<type>test-jar</type>
144144
</dependency>
145+
<dependency>
146+
<groupId>org.junit.jupiter</groupId>
147+
<artifactId>junit-jupiter-api</artifactId>
148+
<scope>test</scope>
149+
</dependency>
150+
<dependency>
151+
<groupId>org.junit.jupiter</groupId>
152+
<artifactId>junit-jupiter-engine</artifactId>
153+
<scope>test</scope>
154+
</dependency>
155+
<dependency>
156+
<groupId>org.junit.jupiter</groupId>
157+
<artifactId>junit-jupiter-params</artifactId>
158+
<scope>test</scope>
159+
</dependency>
160+
<dependency>
161+
<groupId>org.junit.platform</groupId>
162+
<artifactId>junit-platform-launcher</artifactId>
163+
<scope>test</scope>
164+
</dependency>
145165
</dependencies>
146166

147167
<build>

hadoop-tools/hadoop-aws/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,5 +581,25 @@
581581
<artifactId>bcpkix-jdk18on</artifactId>
582582
<scope>test</scope>
583583
</dependency>
584+
<dependency>
585+
<groupId>org.junit.jupiter</groupId>
586+
<artifactId>junit-jupiter-api</artifactId>
587+
<scope>test</scope>
588+
</dependency>
589+
<dependency>
590+
<groupId>org.junit.jupiter</groupId>
591+
<artifactId>junit-jupiter-engine</artifactId>
592+
<scope>test</scope>
593+
</dependency>
594+
<dependency>
595+
<groupId>org.junit.jupiter</groupId>
596+
<artifactId>junit-jupiter-params</artifactId>
597+
<scope>test</scope>
598+
</dependency>
599+
<dependency>
600+
<groupId>org.junit.platform</groupId>
601+
<artifactId>junit-platform-launcher</artifactId>
602+
<scope>test</scope>
603+
</dependency>
584604
</dependencies>
585605
</project>

hadoop-tools/hadoop-azure-datalake/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,26 @@
176176
<scope>compile</scope>
177177
</dependency>
178178

179+
<dependency>
180+
<groupId>org.junit.jupiter</groupId>
181+
<artifactId>junit-jupiter-api</artifactId>
182+
<scope>test</scope>
183+
</dependency>
184+
<dependency>
185+
<groupId>org.junit.jupiter</groupId>
186+
<artifactId>junit-jupiter-engine</artifactId>
187+
<scope>test</scope>
188+
</dependency>
189+
<dependency>
190+
<groupId>org.junit.jupiter</groupId>
191+
<artifactId>junit-jupiter-params</artifactId>
192+
<scope>test</scope>
193+
</dependency>
194+
<dependency>
195+
<groupId>org.junit.platform</groupId>
196+
<artifactId>junit-platform-launcher</artifactId>
197+
<scope>test</scope>
198+
</dependency>
199+
179200
</dependencies>
180201
</project>

hadoop-tools/hadoop-azure/pom.xml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,26 @@
352352
<artifactId>hamcrest-library</artifactId>
353353
<scope>test</scope>
354354
</dependency>
355-
355+
<dependency>
356+
<groupId>org.junit.jupiter</groupId>
357+
<artifactId>junit-jupiter-api</artifactId>
358+
<scope>test</scope>
359+
</dependency>
360+
<dependency>
361+
<groupId>org.junit.jupiter</groupId>
362+
<artifactId>junit-jupiter-engine</artifactId>
363+
<scope>test</scope>
364+
</dependency>
365+
<dependency>
366+
<groupId>org.junit.jupiter</groupId>
367+
<artifactId>junit-jupiter-params</artifactId>
368+
<scope>test</scope>
369+
</dependency>
370+
<dependency>
371+
<groupId>org.junit.platform</groupId>
372+
<artifactId>junit-platform-launcher</artifactId>
373+
<scope>test</scope>
374+
</dependency>
356375
</dependencies>
357376

358377
<profiles>

hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,26 @@
102102
<scope>test</scope>
103103
<version>${project.version}</version>
104104
</dependency>
105+
<dependency>
106+
<groupId>org.junit.jupiter</groupId>
107+
<artifactId>junit-jupiter-api</artifactId>
108+
<scope>test</scope>
109+
</dependency>
110+
<dependency>
111+
<groupId>org.junit.jupiter</groupId>
112+
<artifactId>junit-jupiter-engine</artifactId>
113+
<scope>test</scope>
114+
</dependency>
115+
<dependency>
116+
<groupId>org.junit.jupiter</groupId>
117+
<artifactId>junit-jupiter-params</artifactId>
118+
<scope>test</scope>
119+
</dependency>
120+
<dependency>
121+
<groupId>org.junit.platform</groupId>
122+
<artifactId>junit-platform-launcher</artifactId>
123+
<scope>test</scope>
124+
</dependency>
105125
</dependencies>
106126

107127
<build>

hadoop-tools/hadoop-federation-balance/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,26 @@
124124
<artifactId>hadoop-minicluster</artifactId>
125125
<scope>provided</scope>
126126
</dependency>
127+
<dependency>
128+
<groupId>org.junit.jupiter</groupId>
129+
<artifactId>junit-jupiter-api</artifactId>
130+
<scope>test</scope>
131+
</dependency>
132+
<dependency>
133+
<groupId>org.junit.jupiter</groupId>
134+
<artifactId>junit-jupiter-engine</artifactId>
135+
<scope>test</scope>
136+
</dependency>
137+
<dependency>
138+
<groupId>org.junit.jupiter</groupId>
139+
<artifactId>junit-jupiter-params</artifactId>
140+
<scope>test</scope>
141+
</dependency>
142+
<dependency>
143+
<groupId>org.junit.platform</groupId>
144+
<artifactId>junit-platform-launcher</artifactId>
145+
<scope>test</scope>
146+
</dependency>
127147
</dependencies>
128148

129149
<build>

hadoop-tools/hadoop-gridmix/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,26 @@
124124
<artifactId>bcpkix-jdk18on</artifactId>
125125
<scope>test</scope>
126126
</dependency>
127+
<dependency>
128+
<groupId>org.junit.jupiter</groupId>
129+
<artifactId>junit-jupiter-api</artifactId>
130+
<scope>test</scope>
131+
</dependency>
132+
<dependency>
133+
<groupId>org.junit.jupiter</groupId>
134+
<artifactId>junit-jupiter-engine</artifactId>
135+
<scope>test</scope>
136+
</dependency>
137+
<dependency>
138+
<groupId>org.junit.jupiter</groupId>
139+
<artifactId>junit-jupiter-params</artifactId>
140+
<scope>test</scope>
141+
</dependency>
142+
<dependency>
143+
<groupId>org.junit.platform</groupId>
144+
<artifactId>junit-platform-launcher</artifactId>
145+
<scope>test</scope>
146+
</dependency>
127147
</dependencies>
128148

129149
<build>

hadoop-tools/hadoop-sls/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,26 @@
7878
<artifactId>mockito-inline</artifactId>
7979
<scope>test</scope>
8080
</dependency>
81+
<dependency>
82+
<groupId>org.junit.jupiter</groupId>
83+
<artifactId>junit-jupiter-api</artifactId>
84+
<scope>test</scope>
85+
</dependency>
86+
<dependency>
87+
<groupId>org.junit.jupiter</groupId>
88+
<artifactId>junit-jupiter-engine</artifactId>
89+
<scope>test</scope>
90+
</dependency>
91+
<dependency>
92+
<groupId>org.junit.jupiter</groupId>
93+
<artifactId>junit-jupiter-params</artifactId>
94+
<scope>test</scope>
95+
</dependency>
96+
<dependency>
97+
<groupId>org.junit.platform</groupId>
98+
<artifactId>junit-platform-launcher</artifactId>
99+
<scope>test</scope>
100+
</dependency>
81101
</dependencies>
82102

83103
<build>

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ private Response invokeGetNewApplication(Map<SubClusterId, SubClusterInfo> subCl
456456
NewApplication entity = response.readEntity(NewApplication.class);
457457
ApplicationId applicationId = ApplicationId.fromString(entity.getApplicationId());
458458
RouterAuditLogger.logSuccess(getUser().getShortUserName(), GET_NEW_APP,
459-
TARGET_WEB_SERVICE, applicationId, subClusterId);
459+
TARGET_WEB_SERVICE, applicationId, subClusterId);
460460
return Response.status(Status.OK).entity(entity).build();
461461
}
462462
} catch (Exception e) {

0 commit comments

Comments
 (0)