diff --git a/hadoop-common-project/hadoop-common/pom.xml b/hadoop-common-project/hadoop-common/pom.xml
index 1da0b49dc7a..4b29437b050 100644
--- a/hadoop-common-project/hadoop-common/pom.xml
+++ b/hadoop-common-project/hadoop-common/pom.xml
@@ -799,6 +799,7 @@
org.apache.maven.plugins
maven-surefire-plugin
+ ${ignoreTestFailure}
${testsThreadCount}
false
${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true
diff --git a/hadoop-common-project/hadoop-kms/pom.xml b/hadoop-common-project/hadoop-kms/pom.xml
index 45bc8d36982..78e26d98b94 100644
--- a/hadoop-common-project/hadoop-kms/pom.xml
+++ b/hadoop-common-project/hadoop-kms/pom.xml
@@ -206,6 +206,7 @@
org.apache.maven.plugins
maven-surefire-plugin
+ ${ignoreTestFailure}
1
false
1
diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml
index 2797ad3988d..481f71c3d54 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml
@@ -262,6 +262,7 @@
org.apache.maven.plugins
maven-surefire-plugin
+ ${ignoreTestFailure}
1
600
@@ -408,6 +409,7 @@
org.apache.maven.plugins
maven-surefire-plugin
+ ${ignoreTestFailure}
1
true
600
diff --git a/hadoop-hdfs-project/hadoop-hdfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/pom.xml
index 97c7cec5998..b6f19f6a642 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs/pom.xml
@@ -427,6 +427,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
org.apache.maven.plugins
maven-surefire-plugin
+ ${ignoreTestFailure}
${testsThreadCount}
false
${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true
diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml
index 0245444f7a5..d1b1f1c2e90 100644
--- a/hadoop-project/pom.xml
+++ b/hadoop-project/pom.xml
@@ -34,6 +34,8 @@
2021
false
+
+ true
true
6.1.26
_
@@ -1614,6 +1616,7 @@
org.apache.maven.plugins
maven-surefire-plugin
+ ${ignoreTestFailure}
false
${surefire.fork.timeout}
${maven-surefire-plugin.argLine}
diff --git a/hadoop-tools/hadoop-distcp/pom.xml b/hadoop-tools/hadoop-distcp/pom.xml
index 9c0795a966b..0c96aedce99 100644
--- a/hadoop-tools/hadoop-distcp/pom.xml
+++ b/hadoop-tools/hadoop-distcp/pom.xml
@@ -124,6 +124,7 @@
org.apache.maven.plugins
maven-surefire-plugin
+ ${ignoreTestFailure}
1
false
600
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/pom.xml
index 3d7e35514c8..333fd5a3f9a 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/pom.xml
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/pom.xml
@@ -168,6 +168,7 @@
org.apache.maven.plugins
maven-surefire-plugin
+ ${ignoreTestFailure}
false
900
-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError