From 6024b3a2add1247b7b6e82d50f5267a8772e14e3 Mon Sep 17 00:00:00 2001 From: Chris Douglas Date: Mon, 26 Feb 2018 16:32:06 -0800 Subject: [PATCH] Backport HADOOP-13514 (surefire upgrade) to branch-2 (cherry picked from commit 762125b864ab812512bad9a59344ca79af7f43ac) --- BUILDING.txt | 4 ++-- hadoop-project/pom.xml | 5 +++-- hadoop-tools/hadoop-aws/pom.xml | 2 ++ hadoop-tools/hadoop-azure/pom.xml | 3 +++ 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/BUILDING.txt b/BUILDING.txt index 9c1fbd61cad..e7701a5bd4d 100644 --- a/BUILDING.txt +++ b/BUILDING.txt @@ -267,10 +267,10 @@ If the build process fails with an out of memory error, you should be able to fi it by increasing the memory used by maven which can be done via the environment variable MAVEN_OPTS. -Here is an example setting to allocate between 256 and 512 MB of heap space to +Here is an example setting to allocate between 256 MB and 1 GB of heap space to Maven -export MAVEN_OPTS="-Xms256m -Xmx512m" +export MAVEN_OPTS="-Xms256m -Xmx1g" ---------------------------------------------------------------------------------- diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index 6441dc9a73b..9f80749a4f4 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -111,7 +111,7 @@ -Xmx2048m -XX:MaxPermSize=768m -XX:+HeapDumpOnOutOfMemoryError - 2.17 + 2.20.1 ${maven-surefire-plugin.version} ${maven-surefire-plugin.version} @@ -1509,6 +1509,7 @@ ${env.DYLD_LIBRARY_PATH}:${project.build.directory}/native/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib 4 + false ${project.build.directory}/log @@ -1519,7 +1520,7 @@ ${test.build.data} ${test.build.webapps} ${test.cache.data} - ${test.build.classes} + ${project.build.directory}/test-classes true ${project.build.directory}/test-classes/krb5.conf diff --git a/hadoop-tools/hadoop-aws/pom.xml b/hadoop-tools/hadoop-aws/pom.xml index 9343af281ad..920f985d550 100644 --- a/hadoop-tools/hadoop-aws/pom.xml +++ b/hadoop-tools/hadoop-aws/pom.xml @@ -153,6 +153,7 @@ false ${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true ${fs.s3a.scale.test.timeout} + false true @@ -209,6 +210,7 @@ ${fs.s3a.scale.test.timeout} + false false diff --git a/hadoop-tools/hadoop-azure/pom.xml b/hadoop-tools/hadoop-azure/pom.xml index 81ea1ff0133..8b8a584b53e 100644 --- a/hadoop-tools/hadoop-azure/pom.xml +++ b/hadoop-tools/hadoop-azure/pom.xml @@ -326,6 +326,7 @@ false ${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true ${fs.azure.scale.test.timeout} + false true @@ -381,6 +382,7 @@ ${fs.azure.scale.test.timeout} + false false ${fs.azure.scale.test.enabled} @@ -431,6 +433,7 @@ ${fs.azure.scale.test.timeout} ${fs.azure.scale.test.timeout} + false