Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9980

Remove jersey* jars from exclusions.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 4.0.0
    • Impala 4.0.0
    • Frontend
    • None
    • ghx-label-4

    Description

      IMPALA-9679 removed a jersey* jars from being included in docker images. These jars are required by Impala ranger plugin and as a result ClassNotFound errors are thrown in Impala docker container when ranger plugin is enabled. Part of the exception below

      I0720 03:41:41.647934     7 jni-util.cc:288] org.apache.impala.common.InternalException: Unable to instantiate authorization provider: org.apache.impala.authorization.ranger.RangerAuthorizationFactory
              at org.apache.impala.util.AuthorizationUtil.authzFactoryFrom(AuthorizationUtil.java:88)
              at org.apache.impala.service.JniCatalog.<init>(JniCatalog.java:121)
      Caused by: java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
              at org.apache.impala.util.AuthorizationUtil.authzFactoryFrom(AuthorizationUtil.java:86)
              ... 1 more
      Caused by: java.lang.ExceptionInInitializerError
              at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:182)
              at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:175)
              at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162)
              at com.sun.jersey.api.client.Client.init(Client.java:343)
              at com.sun.jersey.api.client.Client.access$000(Client.java:119)
              at com.sun.jersey.api.client.Client$1.f(Client.java:192)
              at com.sun.jersey.api.client.Client$1.f(Client.java:188)
              at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)
              at com.sun.jersey.api.client.Client.<init>(Client.java:188)
              at com.sun.jersey.api.client.Client.<init>(Client.java:171)
              at com.sun.jersey.api.client.Client.create(Client.java:683)
              at org.apache.ranger.plugin.util.RangerRESTClient.buildClient(RangerRESTClient.java:214)
              at org.apache.ranger.plugin.util.RangerRESTClient.getClient(RangerRESTClient.java:187)
              at org.apache.ranger.plugin.util.RangerRESTClient.get(RangerRESTClient.java:448)
              at org.apache.ranger.admin.client.RangerAdminRESTClient$4.run(RangerAdminRESTClient.java:228)
              at org.apache.ranger.admin.client.RangerAdminRESTClient$4.run(RangerAdminRESTClient.java:223)
              at java.security.AccessController.doPrivileged(Native Method)
              at javax.security.auth.Subject.doAs(Subject.java:360)
              at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1856)
              at org.apache.ranger.admin.client.RangerAdminRESTClient.getRolesIfUpdated(RangerAdminRESTClient.java:235)
              at org.apache.ranger.plugin.util.RangerRolesProvider.loadUserGroupRolesFromAdmin(RangerRolesProvider.java:183)
              at org.apache.ranger.plugin.util.RangerRolesProvider.loadUserGroupRoles(RangerRolesProvider.java:123)
              at org.apache.ranger.plugin.util.PolicyRefresher.loadRoles(PolicyRefresher.java:493)
              at org.apache.ranger.plugin.util.PolicyRefresher.startRefresher(PolicyRefresher.java:143)
              at org.apache.ranger.plugin.service.RangerBasePlugin.init(RangerBasePlugin.java:182)
              at org.apache.impala.authorization.ranger.RangerImpalaPlugin.getInstance(RangerImpalaPlugin.java:53)
              at org.apache.impala.authorization.ranger.RangerAuthorizationChecker.<init>(RangerAuthorizationChecker.java:80)
              at org.apache.impala.authorization.ranger.RangerAuthorizationFactory.<init>(RangerAuthorizationFactory.java:44)
              ... 6 more
      Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.internal.RuntimeDelegateImpl
              at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:130)
              at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:97)
              at javax.ws.rs.core.MediaType.valueOf(MediaType.java:172)
              at com.sun.jersey.core.header.MediaTypes.<clinit>(MediaTypes.java:65)
              ... 34 more
      Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.internal.RuntimeDelegateImpl
              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) 

       

      We should remove these exclusions.

      Attachments

        Activity

          People

            anuragmantri Anurag Mantripragada
            anuragmantri Anurag Mantripragada
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: