You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Joe McDonnell (Jira)" <ji...@apache.org> on 2020/06/17 20:13:00 UTC
[jira] [Resolved] (IMPALA-9862) Impala fails to start up due to
ClassNotFoundException: SolrException
[ https://issues.apache.org/jira/browse/IMPALA-9862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe McDonnell resolved IMPALA-9862.
-----------------------------------
Fix Version/s: Impala 4.0
Resolution: Fixed
> Impala fails to start up due to ClassNotFoundException: SolrException
> ---------------------------------------------------------------------
>
> Key: IMPALA-9862
> URL: https://issues.apache.org/jira/browse/IMPALA-9862
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 4.0
> Reporter: Joe McDonnell
> Assignee: Joe McDonnell
> Priority: Critical
> Fix For: Impala 4.0
>
>
> On a deployed cluster configuration using Ranger, Impala fails to start up due to missing class SolrException:
> {noformat}
> I0611 07:18:58.225890 23116 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.JniFrontend.<init>(JniFrontend.java:143)
> 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.NoClassDefFoundError: org/apache/solr/common/SolrException
> at org.apache.ranger.audit.provider.AuditProviderFactory.getProviderFromConfig(AuditProviderFactory.java:448)
> at org.apache.ranger.audit.provider.AuditProviderFactory.init(AuditProviderFactory.java:181)
> at org.apache.ranger.plugin.service.RangerBasePlugin.init(RangerBasePlugin.java:172)
> 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.ClassNotFoundException: org.apache.solr.common.SolrException
> 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)
> ... 12 more
> I0611 07:18:58.226696 23116 status.cc:129] InternalException: Unable to instantiate authorization provider: org.apache.impala.authorization.ranger.RangerAuthorizationFactory
> CAUSED BY: InvocationTargetException: null
> CAUSED BY: NoClassDefFoundError: org/apache/solr/common/SolrException
> CAUSED BY: ClassNotFoundException: org.apache.solr.common.SolrException
> @ 0xc42489
> @ 0x13bdbfe
> @ 0x124a044
> @ 0x111f853
> @ 0x1121085
> @ 0x12665db
> @ 0xb81353
> @ 0x7f5a39ea0554
> @ 0xc025e6
> F0611 07:18:58.226742 23116 frontend.cc:136] InternalException: Unable to instantiate authorization provider: org.apache.impala.authorization.ranger.RangerAuthorizationFactory
> CAUSED BY: InvocationTargetException: null
> CAUSED BY: NoClassDefFoundError: org/apache/solr/common/SolrException
> CAUSED BY: ClassNotFoundException: org.apache.solr.common.SolrException
> . Impalad exiting.{noformat}
> The Ranger in the minicluster does not need Solr jars for the configurations we use, but it looks like some Ranger configurations have a runtime dependency on Solr.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)