769484623 opened a new issue, #9934:
URL: https://github.com/apache/iceberg/issues/9934

   ### Apache Iceberg version
   
   1.4.3
   
   ### Query engine
   
   Flink
   
   ### Please describe the bug 🐞
   
   ```java
   import org.apache.hadoop.conf.Configuration;
   import org.apache.iceberg.CatalogUtil;
   import org.apache.iceberg.aliyun.AliyunProperties;
   import org.apache.iceberg.io.FileIO;
   import java.util.HashMap;
   import java.util.Map;
   public class Test {
       public static void main(String[] args) {
           Configuration hadoopConf = new Configuration();
           Map<String, String> hiveProperties = new HashMap<>();
           hiveProperties.put(AliyunProperties.CLIENT_ACCESS_KEY_ID, "AK");
           hiveProperties.put(AliyunProperties.CLIENT_ACCESS_KEY_SECRET, "SK");
           hiveProperties.put(AliyunProperties.OSS_ENDPOINT, 
"oss-cn-shenzhen.aliyuncs.com");
           FileIO io = 
CatalogUtil.loadFileIO("org.apache.iceberg.aliyun.oss.OSSFileIO", 
hiveProperties, hadoopConf);
           io.deleteFile("oss://xxx/filename.txt");
       }
   }
   ```
   
   above is the test code, throws
   
   ```
    Exception in thread "main" java.lang.NoSuchMethodError: 
com.aliyun.oss.OSS.deleteObject(Ljava/lang/String;Ljava/lang/String;)V
        at org.apache.iceberg.aliyun.oss.OSSFileIO.deleteFile(OSSFileIO.java:87)
        at com.dji.infra.data.dispatch.Test.main(Test.java:20)
   ```
   
   after some debugging, found OSS interface changing from `void 
deleteObject(String, String)`  to `VoidResult deleteObject(String, String)` 
causes this issue.
   
   for that reason, currently cannot work with aliyun-sdk-oss higher than 
3.11.3.
   
   any plans for adapting latest oss-sdk?
   
   thanks


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to