ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (RANGER-2694) TagSync fails to start due to NoClassDefFoundError
Date Mon, 13 Jan 2020 00:57:00 GMT

    [ https://issues.apache.org/jira/browse/RANGER-2694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17013945#comment-17013945
] 

Madhan Neethiraj edited comment on RANGER-2694 at 1/13/20 12:56 AM:
--------------------------------------------------------------------

Attached   [^RANGER-2694.patch]  adds missed library, commons-configuration.jar, to tagsync
packaging.


was (Author: madhan.neethiraj):
Attached  RANGER-2694.patch adds missed library, commons-configuration.jar, to tagsync packaging.

> TagSync fails to start due to NoClassDefFoundError
> --------------------------------------------------
>
>                 Key: RANGER-2694
>                 URL: https://issues.apache.org/jira/browse/RANGER-2694
>             Project: Ranger
>          Issue Type: Bug
>          Components: tagsync
>    Affects Versions: 2.0.0
>            Reporter: Toshihiko Uchida
>            Assignee: Madhan Neethiraj
>            Priority: Minor
>             Fix For: 2.0.1
>
>         Attachments: RANGER-2694.patch
>
>
> TagSync cannot start due to NoClassDefFoundError on org.apache.commons.configuration.PropertiesConfiguration.
> {code:java}
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/configuration/PropertiesConfiguration
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
>         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)
>         at org.apache.atlas.kafka.NotificationProvider.get(NotificationProvider.java:33)
>         at org.apache.ranger.tagsync.source.atlas.AtlasTagSource.initialize(AtlasTagSource.java:103)
>         at org.apache.ranger.tagsync.process.TagSynchronizer.initializeTagSources(TagSynchronizer.java:262)
>         at org.apache.ranger.tagsync.process.TagSynchronizer.initialize(TagSynchronizer.java:113)
>         at org.apache.ranger.tagsync.process.TagSynchronizer.main(TagSynchronizer.java:65)
> Caused by: java.lang.ClassNotFoundException: org.apache.commons.configuration.PropertiesConfiguration
>         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)
>         ... 17 more
> {code}
> It happens since Ranger 2.0.0 uses commons-configuration2, while Atlas 2.0.0 uses commons-configuration.
>  - Ranger: [https://github.com/apache/ranger/blob/89c5ac6/tagsync/pom.xml#L72-L76]
>  - Atlas: [https://github.com/apache/atlas/blob/35ec91a/notification/pom.xml#L119-L123]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message