Skip to content

Commit a170ff4

Browse files
authored
MAPREDUCE-7521. Fix TestUberAM failures after JUnit 5 migration. (#8017) Contributed by Shilun Fan
* MAPREDUCE-7521. Fix TestUberAM failures after JUnit 5 migration. Reviewed-by: Tsz-Wo Nicholas Sze <[email protected]> Signed-off-by: Shilun Fan <[email protected]>
1 parent c83481e commit a170ff4

File tree

2 files changed

+1
-2
lines changed
  • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/v2

2 files changed

+1
-2
lines changed

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/v2/TestMRJobs.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public class TestMRJobs {
153153
@BeforeAll
154154
public static void setup() throws IOException {
155155
try {
156-
dfsCluster = new MiniDFSCluster.Builder(conf).numDataNodes(2)
156+
dfsCluster = new MiniDFSCluster.Builder(conf).numDataNodes(5)
157157
.format(true).racks(null).build();
158158
remoteFs = dfsCluster.getFileSystem();
159159
} catch (IOException io) {

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/v2/TestUberAM.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public class TestUberAM extends TestMRJobs {
4545

4646
@BeforeAll
4747
public static void setup() throws IOException {
48-
TestMRJobs.setup();
4948
if (mrCluster != null) {
5049
mrCluster.getConfig().setBoolean(MRJobConfig.JOB_UBERTASK_ENABLE, true);
5150
mrCluster.getConfig().setInt(MRJobConfig.JOB_UBERTASK_MAXREDUCES, 3);

0 commit comments

Comments
 (0)