Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update trino-plugin to be compatible with the latest Trino SPI (version 433) #290

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

okayhooni
Copy link

@okayhooni okayhooni commented Nov 24, 2023

What changes were proposed in this pull request?

WARNING

How was this patch tested?

  • I tested this updated plugin with Trino v433(latest) and Ranger v2.4.0
  • I guess it will work well with the higher version of Ranger(it may also v3.0.0..?)

@aakashnand , would you please review this update..?

@okayhooni okayhooni changed the title Update trino-plugin to be compatibe with the latest Trino SPI (version 433) Update trino-plugin to be compatible with the latest Trino SPI (version 433) Nov 24, 2023
@leeyh0216
Copy link

Hello, @okayhooni

Although we are not doing Ranger Contributing, we are using the same upgraded version of Trino internally.

How did you test these changes?
I remember that Trino Dependency built with JDK 17 could not be used on the Ranger Admin side (built with JDK8), so I was curious how you got it running. (In our case, Ranger Admin was also built based on JDK 17.)
Additionally, there doesn't seem to be any code modification for ranger-trino-plugin-shim, but I think it needs to be modified.

@okayhooni
Copy link
Author

@leeyh0216
Sorry for the late response..!

@deebify
Copy link

deebify commented Jan 9, 2024

@okayhooni can you share your maven build command for ranger and trino plugin? I tried to build your fork with JDK 17 but getting errors

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:exploded (prepare) on project security-admin-web: Execution prepare of goal org.apache.maven.plugins:maven-war-plugin:2.6:exploded failed: Unable to load the mojo 'exploded' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.6' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null

I build by the following command:

mvn -DskipTests=true clean compile package install

@nghiabuilvb
Copy link

@okayhooni can you share your maven build command for ranger and trino plugin? I tried to build your fork with JDK 17 but getting errors

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:exploded (prepare) on project security-admin-web: Execution prepare of goal org.apache.maven.plugins:maven-war-plugin:2.6:exploded failed: Unable to load the mojo 'exploded' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.6' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: null

I build by the following command:

mvn -DskipTests=true clean compile package install

You should build only trino plugin, you can try to run this command:
mvn clean package -DskipTests -P ranger-trino-plugin,-linux -am -pl distro,plugin-trino,ranger-trino-plugin-shim,agents-installer,credentialbuilder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants