jovezhong opened a new issue, #6647:
URL: https://github.com/apache/gravitino/issues/6647

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   I downloaded the 212MB jar from Maven: 
   
https://repo1.maven.org/maven2/org/apache/gravitino/gravitino-aws/0.8.0-incubating/gravitino-aws-0.8.0-incubating.jar
 and put this in /libs folder
   
   But got java.lang.NoClassDefFoundError while using S3FileIO.
   
   I use JdGUI to open the jar and confirmed the class is missing
   
   <img width="589" alt="Image" 
src="https://github.com/user-attachments/assets/5ff99247-dcdc-459e-8af5-8815ed401166";
 />
   
   ### Error message and/or stacktrace
   
   ```
   {"error":{"message":"Cannot initialize FileIO implementation 
org.apache.iceberg.aws.s3.S3FileIO: Cannot find constructor for interface 
org.apache.iceberg.io.FileIO\n\tMissing org.apache.iceberg.aws.s3.S3FileIO 
[java.lang.NoClassDefFoundError: 
software/amazon/awssdk/services/s3/model/S3Exception]","type":"IllegalArgumentException","code":400,"stack":["java.lang.IllegalArgumentException:
 Cannot initialize FileIO implementation org.apache.iceberg.aws.s3.S3FileIO: 
Cannot find constructor for interface org.apache.iceberg.io.FileIO","\tMissing 
org.apache.iceberg.aws.s3.S3FileIO [java.lang.NoClassDefFoundError: 
software/amazon/awssdk/services/s3/model/S3Exception]","\tat 
org.apache.iceberg.CatalogUtil.loadFileIO(CatalogUtil.java:337)","\tat 
org.apache.iceberg.jdbc.JdbcCatalog.initialize(JdbcCatalog.java:130)","\tat 
org.apache.gravitino.iceberg.common.utils.IcebergCatalogUtil.loadJdbcCatalog(IcebergCatalogUtil.java:143)","\tat
 org.apache.gravitino.iceberg.common.utils.IcebergCatalogUtil.l
 oadCatalogBackend(IcebergCatalogUtil.java:191)","\tat 
org.apache.gravitino.iceberg.common.ops.IcebergCatalogWrapper.<init>(IcebergCatalogWrapper.java:89)","\tat
 
org.apache.gravitino.iceberg.service.CatalogWrapperForREST.<init>(CatalogWrapperForREST.java:73)",
   ```
   
   ### How to reproduce
   
   gravitino.iceberg-rest.catalog-backend = jdbc
   gravitino.iceberg-rest.warehouse = s3://tp-internal2/jove/gravitino1
   gravitino.iceberg-rest.io-impl= org.apache.iceberg.aws.s3.S3FileIO
   
   ### Additional context
   
   _No response_


-- 
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: commits-unsubscr...@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to