Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.1.0
-
None
-
None
-
jdk1.8.0_241/Centos7
Description
schema registry service fails when we Test Connection or try to query registry-service/schema-group/serde
java.lang.NoClassDefFoundError: com/hortonworks/registries/schemaregistry/client/UrlSelector.
Steps to reproduce
Clean install from apache-ranger-2.1.0.tar.gz
Try to add add Schema Registry service and Test Connection.
or
Add the service anyway. Add a policy and try to search registry-service/schema-group/serde
will fail with ERROR org.apache.ranger.rest.ServiceREST (ServiceREST.java:1236) - lookupResource(SR2, ResourceLookupContext={resourceName=serde,userInput=df,resources={serde=[]}}) failed
org.apache.ranger.plugin.client.HadoopException: java.lang.NoClassDefFoundError: com/hortonworks/registries/schemaregistry/client/UrlSelector
I tried adding the missing jars from horton schema-registry but got blocked with conflicting class files.
java.lang.LinkageError: ClassCastException: attempting to castjar:file:/opt/ranger-2.1.0-admin/ews/webapp/WEB-INF/lib/jersey-bundle-1.19.3.jar!/javax/ws/rs/ext/RuntimeDelegate.class to jar:file:/home/bambam/lib/javax.ws.rs-api-2.0.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class.
Looks like jersey-bundle-1.19.3.jar and javax.ws.rs-api-2.0.1.jar share some class files
Not sure if I missed something. There is not much documentation on how to plug schema-registry with ranger