shihkauskas opened a new issue, #120:
URL: https://github.com/apache/paimon-trino/issues/120

   Description
   When deploying Paimon-Trino connector in Kubernetes with a custom Trino 
image (based on trinodb/trino:440), I get the following error during startup:
   ```2026-02-10T08:01:29.746Z ERROR main io.trino.server.Server 
io/trino/hdfs/HdfsModule
   java.lang.NoClassDefFoundError: io/trino/hdfs/HdfsModule
        at 
org.apache.paimon.trino.TrinoConnectorFactory.create(TrinoConnectorFactory.java:103)
        at 
org.apache.paimon.trino.TrinoConnectorFactory.create(TrinoConnectorFactory.java:80)
        at 
io.trino.connector.DefaultCatalogFactory.createConnector(DefaultCatalogFactory.java:200)
        ...
   ```
   
   Setup details
   
   - Trino version: 440 (official trinodb/trino:440 image)
   - Paimon-Trino version: 1.3.1 (built from source with -Dtrino.version=440)
   - Build command: mvn clean install -DskipTests -Dtrino.version=440 
-Dspotless.check.skip=true
   - Plugin installation: all jars from 
target/paimon-trino-440-1.3.1-plugin.tar.gz copied to 
/usr/lib/trino/plugin/paimon/
   - **Removed** from plugin directory: hadoop-apache-*.jar, hive-thrift-*.jar, 
trino-hdfs-440.jar (Hadoop/HDFS not needed, only S3/MinIO)
   
   Catalog properties (etc/catalog/paimon.properties):
   ```
   connector.name=paimon
   paimon.catalog.type=filesystem
   fs.native.classpath.enabled=true
   s3.endpoint=http://***:9000
   s3.aws-access-key=***
   s3.aws-secret-key=***
   s3.path-style-access=true
   s3.ssl.enabled=false
   paimon.warehouse=s3a://paimon-dev/warehouse/
   paimon.file.format=parquet
   ```
   
   If I do NOT remove hdfs*/hadoop* jars from the plugin directory, the error 
changes to:
   
   ```
   2026-02-10T08:18:52.346Z ERROR main io.trino.server.Server Configuration 
errors:
   
   Error: An exception was caught and reported. Message: HDFS should not be on 
the plugin classpath
   at 
ConfigurationFactory.registerConfigurationClasses(ConfigurationFactory.java:186)
   ...
   ```
   
   In older issues (#96, #101, #119) people solved "HDFS should not be on the 
plugin classpath" by moving Hadoop jars to paimon/hdfs/ subdirectory or 
patching HdfsFileSystemLoader.java in Trino, but this does not solve.
   
   Thank you!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to