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

Impala fails to start up due to ClassNotFoundException: SolrException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 4.0.0
    • Impala 4.0.0
    • Frontend
    • None

    Description

      On a deployed cluster configuration using Ranger, Impala fails to start up due to missing class SolrException:

      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.

      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. 

      Attachments

        Activity

          People

            joemcdonnell Joe McDonnell
            joemcdonnell Joe McDonnell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: