You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Anurag Mantripragada (Jira)" <ji...@apache.org> on 2020/07/21 18:02:00 UTC

[jira] [Resolved] (IMPALA-9980) Remove jersey* jars from exclusions.

     [ https://issues.apache.org/jira/browse/IMPALA-9980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anurag Mantripragada resolved IMPALA-9980.
------------------------------------------
    Fix Version/s: Impala 4.0
       Resolution: Fixed

> Remove jersey* jars from exclusions.
> ------------------------------------
>
>                 Key: IMPALA-9980
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9980
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Frontend
>    Affects Versions: Impala 4.0
>            Reporter: Anurag Mantripragada
>            Assignee: Anurag Mantripragada
>            Priority: Critical
>             Fix For: Impala 4.0
>
>
> 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
> {code:java}
> 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) {code}
>  
> We should remove these exclusions.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org