[jira] (RANGER-3755) Build Plugin-Trino artifacts only with JDK 11
[ https://issues.apache.org/jira/browse/RANGER-3755 ] ericsoul deleted comment on RANGER-3755: -- was (Author: elapsedsoul): How to use trino plugin with jdk11 connect to admin with jdk1.8. While create the trino service on admin web with jdk1.8, I got the error: msgDesc: "trino failed to find service class org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not be available. Please make sure plugin jar is in the correct place." Anyone could help? > Build Plugin-Trino artifacts only with JDK 11 > - > > Key: RANGER-3755 > URL: https://issues.apache.org/jira/browse/RANGER-3755 > Project: Ranger > Issue Type: Bug > Components: Ranger >Affects Versions: 3.0.0, 2.2.0 >Reporter: Ramesh Mani >Assignee: Ramesh Mani >Priority: Major > Fix For: 3.0.0, 2.3.0 > > > Plugin Trino needs jdk 11 and about to compile and build. In order to avoid > build issue in Apache Ranger when including Plugin Trino, we need to enable a > profile so that default build of Apache Ranger will use JDK 1.8 and Plugin > Trino and its artifacts can be build with JDK 11 profile. > To build Plugin Trino artifacts following command can be executed. > mvn clean compile package -P ranger-trino-plugin -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (RANGER-3893) [trino-plugin]Could not create trino service on secure admin web
[ https://issues.apache.org/jira/browse/RANGER-3893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ericsoul resolved RANGER-3893. -- Resolution: Fixed > [trino-plugin]Could not create trino service on secure admin web > > > Key: RANGER-3893 > URL: https://issues.apache.org/jira/browse/RANGER-3893 > Project: Ranger > Issue Type: Bug > Components: plugins >Affects Versions: 2.3.0 >Reporter: ericsoul >Priority: Major > > I use web compiled by jdk1.8, and trino plugin compiled by jdk11 ,when create > a trino service on admin web,I got this: > msgDesc: "trino failed to find service class > org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not > be available. Please make sure plugin jar is in the correct place." > > It seems do not have class RangerServiceTrino which in trino-plugin module > applied for admin web. So add trino-plugin module for jdk1.8 compile. > > While compile plugin-trino module with jdk1.8 , I got can not access the > trino spi class error. That seems trino spi jar is based on jdk11 > > The code for 2.3.0 release tag now can compile by jdk11. But the admin web > can not work well. > I got this error message seem to affect: > Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence > Services - 2.5.2.v20140319-9ad6abd): > org.eclipse.persistence.exceptions.ValidationException Exception Description: > Entity class [class org.apache.ranger.entity.XXAccessAuditV4] has no primary > key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If > you have defined PK using any of these annotations then make sure that you do > not have mixed access-type (both fields and properties annotated) in your > entity class hierarchy. at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) > at > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) > at > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) > at > org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) > at > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) > at > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:829) Caused by: > javax.persistence.PersistenceException: Exception [EclipseLink-28018] > (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): > org.eclipse.persistence.exceptions.EntityManagerSetupException Exception > Description: Predeployment of PersistenceUnit [defaultPU] failed. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (RANGER-3893) [trino-plugin]Could not create trino service on secure admin web
[ https://issues.apache.org/jira/browse/RANGER-3893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17598145#comment-17598145 ] ericsoul commented on RANGER-3893: -- use the way in [RANGER-3755](https://issues.apache.org/jira/browse/RANGER-3755) fix the pom.xml and execute the compile command: {noformat} ranger-trino-plugin agents-audit agents-common agents-cred agents-installer credentialbuilder ranger-plugin-classloader ranger-util plugin-trino ranger-trino-plugin-shim distro > ADD THIS LINE between Line Number 630 and 640 {noformat} {code:java} mvn clean compile package assembly:assembly -P ranger-trino-plugin{code} > [trino-plugin]Could not create trino service on secure admin web > > > Key: RANGER-3893 > URL: https://issues.apache.org/jira/browse/RANGER-3893 > Project: Ranger > Issue Type: Bug > Components: plugins >Affects Versions: 2.3.0 >Reporter: ericsoul >Priority: Major > > I use web compiled by jdk1.8, and trino plugin compiled by jdk11 ,when create > a trino service on admin web,I got this: > msgDesc: "trino failed to find service class > org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not > be available. Please make sure plugin jar is in the correct place." > > It seems do not have class RangerServiceTrino which in trino-plugin module > applied for admin web. So add trino-plugin module for jdk1.8 compile. > > While compile plugin-trino module with jdk1.8 , I got can not access the > trino spi class error. That seems trino spi jar is based on jdk11 > > The code for 2.3.0 release tag now can compile by jdk11. But the admin web > can not work well. > I got this error message seem to affect: > Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence > Services - 2.5.2.v20140319-9ad6abd): > org.eclipse.persistence.exceptions.ValidationException Exception Description: > Entity class [class org.apache.ranger.entity.XXAccessAuditV4] has no primary > key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If > you have defined PK using any of these annotations then make sure that you do > not have mixed access-type (both fields and properties annotated) in your > entity class hierarchy. at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) > at > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) > at > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) > at > org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) > at > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) > at > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:829) Caused by: > javax.persistence.PersistenceException: Exception [EclipseLink-28018] > (Eclipse Persistence
[jira] [Updated] (RANGER-3893) [trino-plugin]Could not create trino service on secure admin web
[ https://issues.apache.org/jira/browse/RANGER-3893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ericsoul updated RANGER-3893: - Description: I use web compiled by jdk1.8, and trino plugin compiled by jdk11 ,when create a trino service on admin web,I got this: msgDesc: "trino failed to find service class org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not be available. Please make sure plugin jar is in the correct place." It seems do not have class RangerServiceTrino which in trino-plugin module applied for admin web. So add trino-plugin module for jdk1.8 compile. While compile plugin-trino module with jdk1.8 , I got can not access the trino spi class error. That seems trino spi jar is based on jdk11 The code for 2.3.0 release tag now can compile by jdk11. But the admin web can not work well. I got this error message seem to affect: Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException Exception Description: Entity class [class org.apache.ranger.entity.XXAccessAuditV4] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [defaultPU] failed. was: I use web compiled by jdk1.8, when create a trino connection,I got this: msgDesc: "trino failed to find service class org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not be available. Please make sure plugin jar is in the correct place." It seems do not have class RangerServiceTrino which in trino-plugin module applied for admin web. So add trino-plugin module for jdk1.8 compile. While compile plugin-trino module with jdk1.8 , I got can not access the trino spi class error. That seems trino spi jar is based on jdk11 The code for 2.3.0 release tag now can compile by jdk11. But the admin web can not work well. I got this error message seem to affect: Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException Exception Description: Entity class [class
[jira] [Updated] (RANGER-3893) [trino-plugin]Could not create trino service on secure admin web
[ https://issues.apache.org/jira/browse/RANGER-3893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ericsoul updated RANGER-3893: - Summary: [trino-plugin]Could not create trino service on secure admin web (was: Could not create trino service on secure admin web) > [trino-plugin]Could not create trino service on secure admin web > > > Key: RANGER-3893 > URL: https://issues.apache.org/jira/browse/RANGER-3893 > Project: Ranger > Issue Type: Bug > Components: plugins >Affects Versions: 2.3.0 >Reporter: ericsoul >Priority: Major > > I use web compiled by jdk1.8, when create a trino connection,I got this: > msgDesc: "trino failed to find service class > org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not > be available. Please make sure plugin jar is in the correct place." > > It seems do not have class RangerServiceTrino which in trino-plugin module > applied for admin web. So add trino-plugin module for jdk1.8 compile. > > While compile plugin-trino module with jdk1.8 , I got can not access the > trino spi class error. That seems trino spi jar is based on jdk11 > > The code for 2.3.0 release tag now can compile by jdk11. But the admin web > can not work well. > I got this error message seem to affect: > Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence > Services - 2.5.2.v20140319-9ad6abd): > org.eclipse.persistence.exceptions.ValidationException Exception Description: > Entity class [class org.apache.ranger.entity.XXAccessAuditV4] has no primary > key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If > you have defined PK using any of these annotations then make sure that you do > not have mixed access-type (both fields and properties annotated) in your > entity class hierarchy. at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) > at > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) > at > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) > at > org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) > at > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) > at > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:829) Caused by: > javax.persistence.PersistenceException: Exception [EclipseLink-28018] > (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): > org.eclipse.persistence.exceptions.EntityManagerSetupException Exception > Description: Predeployment of PersistenceUnit [defaultPU] failed. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (RANGER-3893) Could not create trino service on secure admin web
[ https://issues.apache.org/jira/browse/RANGER-3893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ericsoul updated RANGER-3893: - Summary: Could not create trino service on secure admin web (was: Could not create service trino service on secure admin web) > Could not create trino service on secure admin web > -- > > Key: RANGER-3893 > URL: https://issues.apache.org/jira/browse/RANGER-3893 > Project: Ranger > Issue Type: Bug > Components: plugins >Affects Versions: 2.3.0 >Reporter: ericsoul >Priority: Major > > I use web compiled by jdk1.8, when create a trino connection,I got this: > msgDesc: "trino failed to find service class > org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not > be available. Please make sure plugin jar is in the correct place." > > It seems do not have class RangerServiceTrino which in trino-plugin module > applied for admin web. So add trino-plugin module for jdk1.8 compile. > > While compile plugin-trino module with jdk1.8 , I got can not access the > trino spi class error. That seems trino spi jar is based on jdk11 > > The code for 2.3.0 release tag now can compile by jdk11. But the admin web > can not work well. > I got this error message seem to affect: > Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence > Services - 2.5.2.v20140319-9ad6abd): > org.eclipse.persistence.exceptions.ValidationException Exception Description: > Entity class [class org.apache.ranger.entity.XXAccessAuditV4] has no primary > key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If > you have defined PK using any of these annotations then make sure that you do > not have mixed access-type (both fields and properties annotated) in your > entity class hierarchy. at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) > at > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) > at > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) > at > org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) > at > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) > at > org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:829) Caused by: > javax.persistence.PersistenceException: Exception [EclipseLink-28018] > (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): > org.eclipse.persistence.exceptions.EntityManagerSetupException Exception > Description: Predeployment of PersistenceUnit [defaultPU] failed. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (RANGER-3893) Could not create service trino service on secure admin web
[ https://issues.apache.org/jira/browse/RANGER-3893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ericsoul updated RANGER-3893: - Description: I use web compiled by jdk1.8, when create a trino connection,I got this: msgDesc: "trino failed to find service class org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not be available. Please make sure plugin jar is in the correct place." It seems do not have class RangerServiceTrino which in trino-plugin module applied for admin web. So add trino-plugin module for jdk1.8 compile. While compile plugin-trino module with jdk1.8 , I got can not access the trino spi class error. That seems trino spi jar is based on jdk11 The code for 2.3.0 release tag now can compile by jdk11. But the admin web can not work well. I got this error message seem to affect: Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException Exception Description: Entity class [class org.apache.ranger.entity.XXAccessAuditV4] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [defaultPU] failed. was: The code for 2.3.0 release tag now can compile by jdk11. But the admin web can not work well. I got this error message seem to affect: Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException Exception Description: Entity class [class org.apache.ranger.entity.XXAccessAuditV4] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) at
[jira] [Commented] (RANGER-3755) Build Plugin-Trino artifacts only with JDK 11
[ https://issues.apache.org/jira/browse/RANGER-3755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17597844#comment-17597844 ] ericsoul commented on RANGER-3755: -- How to use trino plugin with jdk11 connect to admin with jdk1.8. While create the trino service on admin web with jdk1.8, I got the error: msgDesc: "trino failed to find service class org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not be available. Please make sure plugin jar is in the correct place." Anyone could help? > Build Plugin-Trino artifacts only with JDK 11 > - > > Key: RANGER-3755 > URL: https://issues.apache.org/jira/browse/RANGER-3755 > Project: Ranger > Issue Type: Bug > Components: Ranger >Affects Versions: 3.0.0, 2.2.0 >Reporter: Ramesh Mani >Assignee: Ramesh Mani >Priority: Major > Fix For: 3.0.0, 2.3.0 > > > Plugin Trino needs jdk 11 and about to compile and build. In order to avoid > build issue in Apache Ranger when including Plugin Trino, we need to enable a > profile so that default build of Apache Ranger will use JDK 1.8 and Plugin > Trino and its artifacts can be build with JDK 11 profile. > To build Plugin Trino artifacts following command can be executed. > mvn clean compile package -P ranger-trino-plugin -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (RANGER-3893) trino-plugin
ericsoul created RANGER-3893: Summary: trino-plugin Key: RANGER-3893 URL: https://issues.apache.org/jira/browse/RANGER-3893 Project: Ranger Issue Type: Bug Components: plugins Affects Versions: 2.3.0 Reporter: ericsoul The code for 2.3.0 release tag now can compile by jdk11. But the admin web can not work well. I got this error message seem to affect: Internal Exception: Exception [EclipseLink-7161] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.ValidationException Exception Description: Entity class [class org.apache.ranger.entity.XXAccessAuditV4] has no primary key specified. It should define either an @Id, @EmbeddedId or an @IdClass. If you have defined PK using any of these annotations then make sure that you do not have mixed access-type (both fields and properties annotated) in your entity class hierarchy. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [defaultPU] failed. If I use web compiled by jdk1.8, when create a trino connection,I got this: msgDesc: "trino failed to find service class org.apache.ranger.services.trino.RangerServiceTrino. Resource lookup will not be available. Please make sure plugin jar is in the correct place." While compile plugin-trino module with jdk1.8 , I got can not access the trino spi class error. That seems trino spi jar is based on jdk11 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (RANGER-3892) Missing images from "Support for Read-only Ranger Admin users" doc
Miklos Szurap created RANGER-3892: - Summary: Missing images from "Support for Read-only Ranger Admin users" doc Key: RANGER-3892 URL: https://issues.apache.org/jira/browse/RANGER-3892 Project: Ranger Issue Type: Bug Components: documentation Reporter: Miklos Szurap The documentation for "Support for Read-only Ranger Admin users" https://cwiki.apache.org/confluence/display/RANGER/Support+for+Read-only+Ranger+Admin+users has a couple of images embedded, however those images do not appear, just a placeholder is there. -- This message was sent by Atlassian Jira (v8.20.10#820010)