You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Muhammad Faizan Khan (Jira)" <ji...@apache.org> on 2020/08/10 14:58:00 UTC
[jira] [Created] (OOZIE-3607) xception in thread "main"
java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
Muhammad Faizan Khan created OOZIE-3607:
-------------------------------------------
Summary: xception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
Key: OOZIE-3607
URL: https://issues.apache.org/jira/browse/OOZIE-3607
Project: Oozie
Issue Type: Bug
Components: action
Affects Versions: 5.2.0
Environment: I am using ubuntu:18.04 in a docker, where the single-node Hadoop cluster is also installed and running using the instructions of [https://hadooptutorials.info/2017/09/14/hadoop-installation-on-signle-node-cluster/.|https://hadooptutorials.info/2017/09/14/hadoop-installation-on-signle-node-cluster/]
To know other installations with in the environment:
{code:java}
FROM ubuntu:18.04
WORKDIR /root
RUN apt upgrade && apt update && DEBIAN_FRONTEND=noninteractive \
apt -y install unzip vim wget openjdk-8-jre openjdk-8-jdk inetutils-ping openssh-server net-tools && \
apt-get clean
RUN wget https://archive.apache.org/dist/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz -O - | tar -xz && \
mv apache-maven-3.5.2 /usr/local/
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
ENV PATH $PATH:$JAVA_HOME/bin
ENV MAVEN_HOME /usr/local/apache-maven-3.5.2
ENV PATH $PATH:/usr/local/apache-maven-3.5.2/bin
{code}
Reporter: Muhammad Faizan Khan
I am trying to run oozie within a docker that also has Hadoop 2.6.0 installed and started. I used the instructions mentioned, but still facing the same problem for both oozie 5.2.0 and 5.1.0. I tried changing Hadoop versions as well but still not no solution. The error I am facing on when running the using oozied.sh:
{code:java}
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.conf.Configuration
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 7 more
{code}
Someone already mentioned the same error at same place, I tried his method and version as well but couldn't resolve it.
https://issues.apache.org/jira/browse/OOZIE-3598?jql=project%20%3D%20OOZIE%20AND%20resolution%20%3D%20Unresolved%20AND%20text%20~%20%22NoClassDefFoundError%3A%20org%2Fapache%2Fhadoop%2Fconf%2FConfiguration%22%20ORDER%20BY%20priority%20DESC%2C%20updated%20DESC
--
This message was sent by Atlassian Jira
(v8.3.4#803005)