From fe3853484eccafca00b62b4390db0480f2b2e8f2 Mon Sep 17 00:00:00 2001 From: Suresh Srinivas Date: Sat, 27 Apr 2013 14:24:02 +0000 Subject: [PATCH] HADOOP-9290. Some tests cannot load native library on windows. Contributed by Chris Nauroth. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1476586 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop-common/CHANGES.txt | 5 +++- .../hadoop-hdfs/src/contrib/bkjournal/pom.xml | 1 + .../hadoop-mapreduce-client/pom.xml | 6 +---- hadoop-project/pom.xml | 10 +++++--- .../hadoop-yarn-applications/pom.xml | 25 +++---------------- .../hadoop-yarn/hadoop-yarn-server/pom.xml | 23 +++-------------- hadoop-yarn-project/hadoop-yarn/pom.xml | 5 +--- 7 files changed, 21 insertions(+), 54 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 6fc6dcbc17..c1611a29dd 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -382,7 +382,7 @@ Trunk (Unreleased) HADOOP-9190. packaging docs is broken. (Andy Isaacson via atm) - BREAKDOWN OF HADOOP-8562 SUBTASKS + BREAKDOWN OF HADOOP-8562 SUBTASKS AND RELATED JIRAS HADOOP-8924. Hadoop Common creating package-info.java must not depend on sh. (Chris Nauroth via suresh) @@ -519,6 +519,9 @@ Trunk (Unreleased) HADOOP-9443. Port winutils static code analysis change to trunk. (Chuan Liu via suresh) + + HADOOP-9290. Some tests cannot load native library on windows. + (Chris Nauroth via suresh) Release 2.0.5-beta - UNRELEASED diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml index 1c69688c94..4248e5bbb2 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/pom.xml @@ -33,6 +33,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> hdfs + ${basedir}/../../../../../hadoop-common-project/hadoop-common/target diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/pom.xml b/hadoop-mapreduce-project/hadoop-mapreduce-client/pom.xml index d95c27e356..f138b3db1a 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/pom.xml +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/pom.xml @@ -30,7 +30,7 @@ pom - + ${basedir}/../../../hadoop-common-project/hadoop-common/target @@ -176,10 +176,6 @@ org.apache.maven.plugins maven-surefire-plugin - - - ${basedir}/../../../hadoop-common-project/hadoop-common/target - listener diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index c90d5629cf..c6105bc769 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -50,6 +50,10 @@ ${project.build.directory}/test-dir ${test.build.dir} + + + + ${basedir}/../../hadoop-common-project/hadoop-common/target @@ -811,8 +815,8 @@ -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError - ${basedir}/../../hadoop-common-project/hadoop-common/target - ${env.LD_LIBRARY_PATH}:${project.build.directory}/native/target/usr/local/lib:${basedir}/../../hadoop-common-project/hadoop-common/target/native/target/usr/local/lib/ + ${hadoop.common.build.dir} + ${env.LD_LIBRARY_PATH}:${project.build.directory}/native/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib 4 @@ -891,7 +895,7 @@ - ${env.PATH};${basedir}/../../hadoop-common-project/hadoop-common/target/bin + ${env.PATH};${hadoop.common.build.dir}/bin diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/pom.xml index 78eee7ea6b..be282dc94d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/pom.xml @@ -28,32 +28,15 @@ hadoop-yarn-applications pom + + ${basedir}/../../../../hadoop-common-project/hadoop-common/target + + hadoop-yarn-applications-distributedshell hadoop-yarn-applications-unmanaged-am-launcher - - - - org.apache.maven.plugins - maven-surefire-plugin - - - - ${basedir}/../../../../hadoop-common-project/hadoop-common/target - - - - listener - org.apache.hadoop.test.TimedOutTestsListener - - - - - - - clover diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/pom.xml index 47f7082ac9..6a2a73e348 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/pom.xml @@ -28,26 +28,9 @@ hadoop-yarn-server pom - - - - org.apache.maven.plugins - maven-surefire-plugin - - - - ${basedir}/../../../../hadoop-common-project/hadoop-common/target - - - - listener - org.apache.hadoop.test.TimedOutTestsListener - - - - - - + + ${basedir}/../../../../hadoop-common-project/hadoop-common/target + diff --git a/hadoop-yarn-project/hadoop-yarn/pom.xml b/hadoop-yarn-project/hadoop-yarn/pom.xml index 738d6c5fca..4764b19ff7 100644 --- a/hadoop-yarn-project/hadoop-yarn/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/pom.xml @@ -30,6 +30,7 @@ true 600000 ${basedir} + ${basedir}/../../../hadoop-common-project/hadoop-common/target @@ -159,10 +160,6 @@ org.apache.maven.plugins maven-surefire-plugin - - - ${basedir}/../../../hadoop-common-project/hadoop-common/target - listener