Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1320

Tests for sharelib actions fail with ClassNotFoundException against Hadoop 2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • trunk
    • 4.0.0
    • tests
    • None

    Description

      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).

      Attachments

        1. OOZIE-1320.patch
          15 kB
          Robert Kanter

        Issue Links

          Activity

            People

              rkanter Robert Kanter
              rkanter Robert Kanter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: