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

RangerAuthorizationFactory cannot be instantiated after latest GBN bump up

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • Impala 4.0.0
    • None
    • None
    • ghx-label-2

    Description

      After the GBN was bumped to 11920537 in the commit https://github.com/apache/impala/commit/1ab1143e98ff09610dff82d1795cf103659ffe97 some of the ranger tests are failing with the following exception trace.

      I0407 17:40:18.681761 25041 jni-util.cc:286] 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:420)
      	at org.apache.ranger.audit.provider.AuditProviderFactory.init(AuditProviderFactory.java:178)
      	at org.apache.ranger.plugin.service.RangerBasePlugin.init(RangerBasePlugin.java:175)
      	at org.apache.impala.authorization.ranger.RangerImpalaPlugin.init(RangerImpalaPlugin.java:50)
      	at org.apache.impala.authorization.ranger.RangerImpalaPlugin.getInstance(RangerImpalaPlugin.java:69)
      	at org.apache.impala.authorization.ranger.RangerAuthorizationChecker.<init>(RangerAuthorizationChecker.java:82)
      	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)
      	... 13 more
      

      It looks like after the GBN was upgraded we need to have solr dependencies in the fe/pom.xml and they should not be reverted. The toolchain should also be updated to include exclude solr and atlas libraries for the GBN.

      Attachments

        Activity

          People

            vihangk1 Vihang Karajgaonkar
            vihangk1 Vihang Karajgaonkar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: