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

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   Iceberg REST server failed to write GCS data
   
   ### Error message and/or stacktrace
   
   ```
   Caused by: java.lang.NoSuchMethodError: 
'com.google.api.services.storage.model.StorageObject 
com.google.api.services.storage.model.StorageObject.setCustomTime(com.google.api.client.util.DateTime)'
        at 
com.google.cloud.storage.JsonConversions.blobInfoEncode(JsonConversions.java:232)
 ~[iceberg-gcp-bundle-1.5.2.jar:?]
        at 
com.google.cloud.storage.Conversions$SimpleCodec.encode(Conversions.java:144) 
~[iceberg-gcp-bundle-1.5.2.jar:?]
        at com.google.cloud.storage.StorageImpl.writer(StorageImpl.java:673) 
~[iceberg-gcp-bundle-1.5.2.jar:?]
        at com.google.cloud.storage.StorageImpl.writer(StorageImpl.java:95) 
~[iceberg-gcp-bundle-1.5.2.jar:?]
        at 
org.apache.iceberg.gcp.gcs.GCSOutputStream.openStream(GCSOutputStream.java:114) 
~[iceberg-gcp-1.5.2.jar:?]
        at 
org.apache.iceberg.gcp.gcs.GCSOutputStream.<init>(GCSOutputStream.java:74) 
~[iceberg-gcp-1.5.2.jar:?]
        at 
org.apache.iceberg.gcp.gcs.GCSOutputFile.createOrOverwrite(GCSOutputFile.java:62)
 ~[iceberg-gcp-1.5.2.jar:?]
        at 
org.apache.iceberg.TableMetadataParser.internalWrite(TableMetadataParser.java:125)
 ~[iceberg-core-1.5.2.jar:?]
        at 
org.apache.iceberg.TableMetadataParser.overwrite(TableMetadataParser.java:115) 
~[iceberg-core-1.5.2.jar:?]
   ```
   
   ### How to reproduce
   
   1. place `gravitino-gcp-bundle` jar and `iceberg-gcp-bundle` jar to the 
classpath of Iceberg REST server
   2. try create table
   
   ### Additional context
   
   `iceberg-gcp-bundle` use new google APIs while `gravitino-gcp-bundle` use 
old google APIs, there are some compatibility problems.


-- 
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