Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.0.0
-
None
-
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
Attachments
Issue Links
- is caused by
-
OOZIE-3219 Cannot compile with hadoop 3.1.0
- Closed