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

Oozie fails to start with Hadoop 2.6.0

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.1.0
    • Component/s: None
    • Labels:
      None

      Description

      Oozie is failing to start with Hadoop 2.6.0 with the following error:

       

      Validate DB Connection
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/ReflectionUtils
       at org.apache.oozie.service.Services.setServiceInternal(Services.java:377)
       at org.apache.oozie.service.Services.<init>(Services.java:111)
       at org.apache.oozie.tools.OozieDBCLI.getJdbcConf(OozieDBCLI.java:169)
       at org.apache.oozie.tools.OozieDBCLI.createConnection(OozieDBCLI.java:918)
       at org.apache.oozie.tools.OozieDBCLI.validateConnection(OozieDBCLI.java:926)
       at org.apache.oozie.tools.OozieDBCLI.createDB(OozieDBCLI.java:188)
       at org.apache.oozie.tools.OozieDBCLI.run(OozieDBCLI.java:131)
       at org.apache.oozie.tools.OozieDBCLI.main(OozieDBCLI.java:79)
      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.ReflectionUtils
       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      

       

      The scope of hadoop-common dependency should be changed to compile, if this dependency here is really needed:

      https://github.com/apache/oozie/blob/master/webapp/pom.xml#L152-L156

       

       

        Attachments

        1. OOZIE-3278-001.patch
          4 kB
          Julia Kinga Marton

          Issue Links

            Activity

              People

              • Assignee:
                kmarton Julia Kinga Marton
                Reporter:
                kmarton Julia Kinga Marton
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: