Author: rkanter
Date: Fri Apr 12 17:19:22 2013
New Revision: 1467361
URL: http://svn.apache.org/r1467361
Log:
OOZIE-1320 Tests for sharelib actions fail with ClassNotFoundException against
Hadoop 2 (rkanter)
Modified:
oozie/trunk/release-log.txt
oozie/trunk/sharelib/distcp/pom.xml
oozie/trunk/sharelib/hcatalog/pom.xml
oozie/trunk/sharelib/hive/pom.xml
oozie/trunk/sharelib/oozie/pom.xml
oozie/trunk/sharelib/pig/pom.xml
oozie/trunk/sharelib/sqoop/pom.xml
oozie/trunk/sharelib/streaming/pom.xml
Modified: oozie/trunk/release-log.txt
URL:
http://svn.apache.org/viewvc/oozie/trunk/release-log.txt?rev=1467361&r1=1467360&r2=1467361&view=diff
==============================================================================
--- oozie/trunk/release-log.txt (original)
+++ oozie/trunk/release-log.txt Fri Apr 12 17:19:22 2013
@@ -1,5 +1,6 @@
-- Oozie 4.1.0 release (trunk - unreleased)
+OOZIE-1320 Tests for sharelib actions fail with ClassNotFoundException against
Hadoop 2 (rkanter)
OOZIE-1311 Refactor action Main classes into sharelibs (rkanter)
OOZIE-897 remove special build handling for sqoop testcase (rkanter)
OOZIE-1209 Event generation and handling for workflow and coordinator (mona)
Modified: oozie/trunk/sharelib/distcp/pom.xml
URL:
http://svn.apache.org/viewvc/oozie/trunk/sharelib/distcp/pom.xml?rev=1467361&r1=1467360&r2=1467361&view=diff
==============================================================================
--- oozie/trunk/sharelib/distcp/pom.xml (original)
+++ oozie/trunk/sharelib/distcp/pom.xml Fri Apr 12 17:19:22 2013
@@ -99,6 +99,39 @@
<outputFile>${project.build.directory}/classpath</outputFile>
</configuration>
</execution>
+ <execution>
+ <id>create-mrapp-generated-classpath</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>build-classpath</goal>
+ </goals>
+ <configuration>
+ <!-- needed to run the unit test for DS to
generate the required classpath
+ that is required in the env of the launch
container in the mini mr/yarn cluster -->
+
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <configuration>
+ <target>
+ <!-- needed to include Main class in classpath
for mini yarn cluster for unit tests -->
+ <echo
file="${project.build.directory}/test-classes/mrapp-generated-classpath"
+ append="true"
+
message=":${project.build.directory}/classes"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>generate-test-resources</phase>
+ </execution>
</executions>
</plugin>
<plugin>
Modified: oozie/trunk/sharelib/hcatalog/pom.xml
URL:
http://svn.apache.org/viewvc/oozie/trunk/sharelib/hcatalog/pom.xml?rev=1467361&r1=1467360&r2=1467361&view=diff
==============================================================================
--- oozie/trunk/sharelib/hcatalog/pom.xml (original)
+++ oozie/trunk/sharelib/hcatalog/pom.xml Fri Apr 12 17:19:22 2013
@@ -230,6 +230,39 @@
<outputFile>${project.build.directory}/classpath</outputFile>
</configuration>
</execution>
+ <execution>
+ <id>create-mrapp-generated-classpath</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>build-classpath</goal>
+ </goals>
+ <configuration>
+ <!-- needed to run the unit test for DS to
generate the required classpath
+ that is required in the env of the launch
container in the mini mr/yarn cluster -->
+
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <configuration>
+ <target>
+ <!-- needed to include Main class in classpath
for mini yarn cluster for unit tests -->
+ <echo
file="${project.build.directory}/test-classes/mrapp-generated-classpath"
+ append="true"
+
message=":${project.build.directory}/classes"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>generate-test-resources</phase>
+ </execution>
</executions>
</plugin>
<plugin>
Modified: oozie/trunk/sharelib/hive/pom.xml
URL:
http://svn.apache.org/viewvc/oozie/trunk/sharelib/hive/pom.xml?rev=1467361&r1=1467360&r2=1467361&view=diff
==============================================================================
--- oozie/trunk/sharelib/hive/pom.xml (original)
+++ oozie/trunk/sharelib/hive/pom.xml Fri Apr 12 17:19:22 2013
@@ -172,6 +172,39 @@
<outputFile>${project.build.directory}/classpath</outputFile>
</configuration>
</execution>
+ <execution>
+ <id>create-mrapp-generated-classpath</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>build-classpath</goal>
+ </goals>
+ <configuration>
+ <!-- needed to run the unit test for DS to
generate the required classpath
+ that is required in the env of the launch
container in the mini mr/yarn cluster -->
+
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <configuration>
+ <target>
+ <!-- needed to include Main class in classpath
for mini yarn cluster for unit tests -->
+ <echo
file="${project.build.directory}/test-classes/mrapp-generated-classpath"
+ append="true"
+
message=":${project.build.directory}/classes"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>generate-test-resources</phase>
+ </execution>
</executions>
</plugin>
<!--<plugin>-->
Modified: oozie/trunk/sharelib/oozie/pom.xml
URL:
http://svn.apache.org/viewvc/oozie/trunk/sharelib/oozie/pom.xml?rev=1467361&r1=1467360&r2=1467361&view=diff
==============================================================================
--- oozie/trunk/sharelib/oozie/pom.xml (original)
+++ oozie/trunk/sharelib/oozie/pom.xml Fri Apr 12 17:19:22 2013
@@ -68,6 +68,39 @@
<outputFile>${project.build.directory}/classpath</outputFile>
</configuration>
</execution>
+ <execution>
+ <id>create-mrapp-generated-classpath</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>build-classpath</goal>
+ </goals>
+ <configuration>
+ <!-- needed to run the unit test for DS to
generate the required classpath
+ that is required in the env of the launch
container in the mini mr/yarn cluster -->
+
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <configuration>
+ <target>
+ <!-- needed to include Main class in classpath
for mini yarn cluster for unit tests -->
+ <echo
file="${project.build.directory}/test-classes/mrapp-generated-classpath"
+ append="true"
+
message=":${project.build.directory}/classes"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>generate-test-resources</phase>
+ </execution>
</executions>
</plugin>
<plugin>
Modified: oozie/trunk/sharelib/pig/pom.xml
URL:
http://svn.apache.org/viewvc/oozie/trunk/sharelib/pig/pom.xml?rev=1467361&r1=1467360&r2=1467361&view=diff
==============================================================================
--- oozie/trunk/sharelib/pig/pom.xml (original)
+++ oozie/trunk/sharelib/pig/pom.xml Fri Apr 12 17:19:22 2013
@@ -123,6 +123,39 @@
<outputFile>${project.build.directory}/classpath</outputFile>
</configuration>
</execution>
+ <execution>
+ <id>create-mrapp-generated-classpath</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>build-classpath</goal>
+ </goals>
+ <configuration>
+ <!-- needed to run the unit test for DS to
generate the required classpath
+ that is required in the env of the launch
container in the mini mr/yarn cluster -->
+
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <configuration>
+ <target>
+ <!-- needed to include Main class in classpath
for mini yarn cluster for unit tests -->
+ <echo
file="${project.build.directory}/test-classes/mrapp-generated-classpath"
+ append="true"
+
message=":${project.build.directory}/classes"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>generate-test-resources</phase>
+ </execution>
</executions>
</plugin>
<!--<plugin>-->
Modified: oozie/trunk/sharelib/sqoop/pom.xml
URL:
http://svn.apache.org/viewvc/oozie/trunk/sharelib/sqoop/pom.xml?rev=1467361&r1=1467360&r2=1467361&view=diff
==============================================================================
--- oozie/trunk/sharelib/sqoop/pom.xml (original)
+++ oozie/trunk/sharelib/sqoop/pom.xml Fri Apr 12 17:19:22 2013
@@ -237,6 +237,39 @@
<outputFile>${project.build.directory}/classpath</outputFile>
</configuration>
</execution>
+ <execution>
+ <id>create-mrapp-generated-classpath</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>build-classpath</goal>
+ </goals>
+ <configuration>
+ <!-- needed to run the unit test for DS to
generate the required classpath
+ that is required in the env of the launch
container in the mini mr/yarn cluster -->
+
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <configuration>
+ <target>
+ <!-- needed to include Main class in classpath
for mini yarn cluster for unit tests -->
+ <echo
file="${project.build.directory}/test-classes/mrapp-generated-classpath"
+ append="true"
+
message=":${project.build.directory}/classes"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>generate-test-resources</phase>
+ </execution>
</executions>
</plugin>
<!--<plugin>-->
Modified: oozie/trunk/sharelib/streaming/pom.xml
URL:
http://svn.apache.org/viewvc/oozie/trunk/sharelib/streaming/pom.xml?rev=1467361&r1=1467360&r2=1467361&view=diff
==============================================================================
--- oozie/trunk/sharelib/streaming/pom.xml (original)
+++ oozie/trunk/sharelib/streaming/pom.xml Fri Apr 12 17:19:22 2013
@@ -105,6 +105,39 @@
<outputFile>${project.build.directory}/classpath</outputFile>
</configuration>
</execution>
+ <execution>
+ <id>create-mrapp-generated-classpath</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>build-classpath</goal>
+ </goals>
+ <configuration>
+ <!-- needed to run the unit test for DS to
generate the required classpath
+ that is required in the env of the launch
container in the mini mr/yarn cluster -->
+
<outputFile>${project.build.directory}/test-classes/mrapp-generated-classpath</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.6</version>
+ <executions>
+ <execution>
+ <configuration>
+ <target>
+ <!-- needed to include Main class in classpath
for mini yarn cluster for unit tests -->
+ <echo
file="${project.build.directory}/test-classes/mrapp-generated-classpath"
+ append="true"
+
message=":${project.build.directory}/classes"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <phase>generate-test-resources</phase>
+ </execution>
</executions>
</plugin>
<plugin>