Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3025

Schema Registry service fails with NoClassDefFoundError

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: admin
    • Labels:
      None
    • Environment:
      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

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bambam Rami Darwish
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: