Vihang Karajgaonkar created IMPALA-10644:
--------------------------------------------

             Summary: RangerAuthorizationFactory cannot be instantiated after 
latest GBN bump up
                 Key: IMPALA-10644
                 URL: https://issues.apache.org/jira/browse/IMPALA-10644
             Project: IMPALA
          Issue Type: Bug
            Reporter: Vihang Karajgaonkar
            Assignee: Vihang Karajgaonkar


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.

{noformat}
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
{noformat}

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.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to