Troubleshooting
Problem
The Oozie service fails to execute the workflow when JAVA_HOME is not defined and a JDK version under 1.7 is installed.
Symptom
An Oozie workflow execution failure occurs due to the following error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/hadoop/security/authentication/client/AuthenticationException : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at org.apache.oozie.cli.OozieCLI.createXOozieClient(OozieCLI.java:911)
at org.apache.oozie.cli.OozieCLI.jobCommand(OozieCLI.java:954)
at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:673)
at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:626)
at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:225)
Cause
If no JAVA_HOME is defined, Bigtop auto detects and selects a low level JDK version, such as a JDK version that is under 1.7. Then, the described error message occurs.
Resolving The Problem
1. Set JAVA_HOME in /etc/profile for a JDK version at 1.7 or above when you receive the error message that is described.
2. Source /etc/profile.
3. Run the Oozie workflow again.
Was this topic helpful?
Document Information
Modified date:
08 April 2021
UID
swg21967808