[ https://issues.apache.org/jira/browse/RANGER-3182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308281#comment-17308281 ]
Aakash Nand commented on RANGER-3182: ------------------------------------- [~youchen] Thank you for the feedback. What version of JDK are you using to build the ranger also which version of a ranger are you building? I am using the following maven and JDK version and ranger branch for 2.1.0 {noformat} Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /opt/apache-maven-3.6.3 Java version: 11.0.7, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "4.15.0-45-generic", arch: "amd64", family: "unix" {noformat} and while building hive-agent I am getting the following error in the test case. {noformat} [ERROR] org.apache.ranger.services.hive.HIVERangerAuthorizerTest Time elapsed: 0.984 s <<< ERROR! java.lang.RuntimeException: Error applying authorization policy on hive configuration: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap') at org.apache.ranger.services.hive.HIVERangerAuthorizerTest.setup(HIVERangerAuthorizerTest.java:99) Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap') at org.apache.ranger.services.hive.HIVERangerAuthorizerTest.setup(HIVERangerAuthorizerTest.java:99) {noformat} _class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader_ is the big hint. I believe hive using JDK8 and I am using JDK11 for building. This error is similar to this ticket https://issues.apache.org/jira/browse/HIVE-21584. > Prestosql is renamed to Trino > ----------------------------- > > Key: RANGER-3182 > URL: https://issues.apache.org/jira/browse/RANGER-3182 > Project: Ranger > Issue Type: Improvement > Components: plugins > Affects Versions: 2.1.0 > Reporter: Viacheslav Kriuchkov > Assignee: Pradeep Agrawal > Priority: Blocker > Attachments: 0001-RANGER-3182-Rename-Presto-to-Trino-2.1.0.patch, > 0001-RANGER-3182-Rename-Presto-to-Trino-3.0.0-master.patch > > > All "prestosql" classes are "trino" now and Presto plugin can't integrate > with Trino because of that. It means all Presto deployments that use Ranger > are stuck on version 350 and can't upgrade further. -- This message was sent by Atlassian Jira (v8.3.4#803005)