Browse Source

MAPREDUCE-4739. Some MapReduce tests fail to find winutils. Contributed by Chris Nauroth.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-trunk-win@1401073 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 12 years ago
parent
commit
956b378374

+ 5 - 0
hadoop-mapreduce-project/CHANGES.branch-trunk-win.txt

@@ -0,0 +1,5 @@
+branch-trunk-win changes - unreleased
+
+  MAPREDUCE-4739. Some MapReduce tests fail to find winutils.
+  (Chris Nauroth via suresh)
+

+ 4 - 0
hadoop-mapreduce-project/hadoop-mapreduce-client/pom.xml

@@ -176,6 +176,10 @@
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
+         <environmentVariables>
+           <!-- HADOOP_HOME required for tests on Windows to find winutils -->
+           <HADOOP_HOME>${basedir}/../../../hadoop-common-project/hadoop-common/target</HADOOP_HOME>
+         </environmentVariables>
          <properties>
            <property>
              <name>listener</name>