[ https://issues.apache.org/jira/browse/RANGER-3772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17540843#comment-17540843 ]
Aakash Nand commented on RANGER-3772: ------------------------------------- [~rmani] Submitted a patch and review request https://reviews.apache.org/r/73997/ > Add dnsjava-2.1.7 dependency for trino plugin > ---------------------------------------------- > > Key: RANGER-3772 > URL: https://issues.apache.org/jira/browse/RANGER-3772 > Project: Ranger > Issue Type: Improvement > Components: plugins > Affects Versions: 2.3.0 > Reporter: Aakash Nand > Priority: Major > Labels: Trino > Attachments: > 0001-RANGER-3772-Add-dnsjava-dependency-to-trino-plugin.patch > > > The 2.3.0 version has upgraded the Hadoop dependency for various plugins and > the current Hadoop version 3.3.0 gives problems because of Illegal access > warnings. See > https://issues.apache.org/jira/browse/HADOOP-17317 > To solve this trino plugin needs dnsjava-2.1.7 dependency. Following is the > log > > {code:java} > 2022-05-23T08:29:17.467Z ERROR main io.trino.server.Server Unable to create > injector, see the following errors: > 1) Error injecting constructor, java.lang.RuntimeException: > java.lang.reflect.InvocationTargetException > at > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControl.<init>(RangerSystemAccessControl.java:44) > at > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControlFactory.lambda$create$0(RangerSystemAccessControlFactory.java:45) > while locating > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControl > 1 error > com.google.inject.CreationException: Unable to create injector, see the > following errors: > 1) Error injecting constructor, java.lang.RuntimeException: > java.lang.reflect.InvocationTargetException > at > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControl.<init>(RangerSystemAccessControl.java:44) > at > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControlFactory.lambda$create$0(RangerSystemAccessControlFactory.java:45) > while locating > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControl > 1 error > at > com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543) > at > com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:186) > at > com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109) > at com.google.inject.Guice.createInjector(Guice.java:87) > at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:262) > at > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControlFactory.create(RangerSystemAccessControlFactory.java:53) > at > io.trino.security.AccessControlManager.createSystemAccessControl(AccessControlManager.java:182) > at > java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) > at > java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) > at > java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) > at > java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) > at > java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) > at > java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) > at > java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) > at > io.trino.security.AccessControlManager.loadSystemAccessControl(AccessControlManager.java:151) > at io.trino.server.Server.doStart(Server.java:135) > at io.trino.server.Server.lambda$start$0(Server.java:80) > at io.trino.$gen.Trino_373____20220523_082857_1.run(Unknown Source) > at io.trino.server.Server.start(Server.java:80) > at io.trino.server.TrinoServer.main(TrinoServer.java:38) > Caused by: java.lang.RuntimeException: > java.lang.reflect.InvocationTargetException > at > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControl.<init>(RangerSystemAccessControl.java:67) > at > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControl$$FastClassByGuice$$f94a7f6a.newInstance(<generated>) > at > com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89) > at > com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114) > at > com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32) > at > com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:98) > at > com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:112) > at io.airlift.bootstrap.LifeCycleModule.provision(LifeCycleModule.java:54) > at > com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:120) > at > com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:66) > at > com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:93) > at > com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) > at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:168) > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39) > at > com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:211) > at > com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:182) > ... 18 more > Caused by: java.lang.reflect.InvocationTargetException > at > java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) > at > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControl.<init>(RangerSystemAccessControl.java:65) > ... 34 more > Caused by: java.lang.NoClassDefFoundError: org/xbill/DNS/ResolverConfig > at > org.apache.hadoop.security.SecurityUtil$QualifiedHostResolver.<init>(SecurityUtil.java:592) > at > org.apache.hadoop.security.SecurityUtil.setTokenServiceUseIp(SecurityUtil.java:129) > at > org.apache.hadoop.security.SecurityUtil.setConfigurationInternal(SecurityUtil.java:102) > at org.apache.hadoop.security.SecurityUtil.<clinit>(SecurityUtil.java:88) > at > org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:312) > at > org.apache.hadoop.security.UserGroupInformation.setConfiguration(UserGroupInformation.java:366) > at > org.apache.ranger.authorization.trino.authorizer.RangerSystemAccessControl.<init>(RangerSystemAccessControl.java:95) > ... 39 more > Caused by: java.lang.ClassNotFoundException: org.xbill.DNS.ResolverConfig > at java.base/java.lang.ClassLoader.findClass(ClassLoader.java:719) > at > org.apache.ranger.plugin.classloader.RangerPluginClassLoader$MyClassLoader.findClass(RangerPluginClassLoader.java:319) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) > at > org.apache.ranger.plugin.classloader.RangerPluginClassLoader.loadClass(RangerPluginClassLoader.java:163) > ... 46 more > {code} > -- This message was sent by Atlassian Jira (v8.20.7#820007)