You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2013/04/12 01:05:15 UTC

[jira] [Created] (OOZIE-1320) Tests for sharelib actions fail with ClassNotFoundException against Hadoop 2

Robert Kanter created OOZIE-1320:
------------------------------------

             Summary: Tests for sharelib actions fail with ClassNotFoundException against Hadoop 2
                 Key: OOZIE-1320
                 URL: https://issues.apache.org/jira/browse/OOZIE-1320
             Project: Oozie
          Issue Type: Bug
          Components: tests
    Affects Versions: trunk
            Reporter: Robert Kanter
            Assignee: Robert Kanter
             Fix For: trunk


The changes done to the sharelib actions in OOZIE-1311 have caused their tests to throw {{ClassNotFoundException}} on the Main class (e.g. {{TestSqoopActionExecutor}} throws {{ClassNotFoundException}} on {{SqoopMain}}) when run against Hadoop 2.  This issue only affects the tests, not an actual deployment.  

Before OOZIE-1311, the Main classes were in the launcher jar.  Now that they are not, in Hadoop 1, they get picked up by simply being in the classpath.  In Hadoop 2, this doesn't work because its classpath by default only contains JARs.  We need to modify the classpath to have the Main class to fix this.  

Note that even with a fix, many of the actions will still fail for other reasons because they were not compiled against Hadoop 2.  (Though it should work if you have the proper JARs).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira