World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#14354] build(deps): Bump aliyun-sdk-oss to 3.13.0 (#14355)
dengc367f26ac1cd491b
diff --git a/bundles/iceberg-aliyun-bundle/build.gradle.kts b/bundles/iceberg-aliyun-bundle/build.gradle.ktsindex fbedb6f95d..75882eea0a 100644--- a/bundles/iceberg-aliyun-bundle/build.gradle.kts+++ b/bundles/iceberg-aliyun-bundle/build.gradle.kts@@ -29,7 +29,13 @@ dependencies {// and the published POM resolve the version in the catalog.implementation(libs.jettison)implementation(libs.aliyun.credentials.sdk)- implementation(libs.aliyun.sdk.oss)+ implementation(libs.aliyun.sdk.oss) {+ // aliyun-sdk-oss 3.13.0 pulls aliyun-java-sdk-core 4.5.10, which depends on ini4j 0.5.4.+ // ini4j only backs the core SDK's local profile credentials provider, and OSSFileIO+ // authenticates with a static key or a session token, so keep it out of the bundle+ // (HIGH CVE-2022-41404, tracked in #14777).+ exclude(group = "org.ini4j", module = "ini4j")+ }// Aliyun oss SDK depends on this package, and JDK >= 9 requires manual add// https://www.alibabacloud.com/help/en/oss/developer-reference/java-installation?spm=a2c63.p38356.0.i1implementation(libs.sun.activation)diff --git a/docs/flink-connector/flink-catalog-iceberg.md b/docs/flink-connector/flink-catalog-iceberg.mdindex 45af4a2485..591839073a 100644--- a/docs/flink-connector/flink-catalog-iceberg.md+++ b/docs/flink-connector/flink-catalog-iceberg.md@@ -132,4 +132,10 @@ For temporary credentials vended per table and refreshed automatically, use a `R### OSS-Additionally, you need download the [Aliyun OSS SDK](https://gosspublic.alicdn.com/sdks/java/aliyun_java_sdk_3.10.2.zip), and copy `aliyun-sdk-oss-3.10.2.jar`, `hamcrest-core-1.1.jar`, `jdom2-2.0.6.jar` to the Flink classpath.+Additionally, download the Aliyun OSS SDK version that matches the Iceberg runtime from the table above+([3.18.5](https://repo1.maven.org/maven2/com/aliyun/oss/aliyun-sdk-oss/3.18.5/aliyun-sdk-oss-3.18.5.jar)+for Iceberg 1.11.0 and 1.12.0, [3.10.2](https://repo1.maven.org/maven2/com/aliyun/oss/aliyun-sdk-oss/3.10.2/aliyun-sdk-oss-3.10.2.jar)+for Iceberg 1.10.2) together with its [jdom2](https://repo1.maven.org/maven2/org/jdom/jdom2/2.0.6.1/jdom2-2.0.6.1.jar)+dependency, and put `aliyun-sdk-oss-<version>.jar` and `jdom2-2.0.6.1.jar` in the Flink `lib` directory.+Iceberg 1.11.0 and later expect `OSS#deleteObject(String, String)` to return `VoidResult`, which is only+true from SDK 3.12.0 onward; older SDKs fail with `NoSuchMethodError` on OSS deletes.diff --git a/docs/spark-connector/spark-catalog-iceberg.md b/docs/spark-connector/spark-catalog-iceberg.mdindex a08b993fb1..a6ec29c666 100644--- a/docs/spark-connector/spark-catalog-iceberg.md+++ b/docs/spark-connector/spark-catalog-iceberg.md@@ -260,7 +260,12 @@ a `NoClassDefFoundError` that does not identify the missing bundle directly.### OSS-Please downloading the [Aliyun OSS SDK](https://gosspublic.alicdn.com/sdks/java/aliyun_java_sdk_3.10.2.zip) and copy `aliyun-sdk-oss-3.10.2.jar`, `hamcrest-core-1.1.jar`, `jdom2-2.0.6.jar` in the classpath of Spark.+Download the [Aliyun OSS SDK](https://repo1.maven.org/maven2/com/aliyun/oss/aliyun-sdk-oss/3.18.5/aliyun-sdk-oss-3.18.5.jar)+version that matches the Iceberg runtime from the table above (3.18.5 for Iceberg 1.11.0), together with+[jdom2](https://repo1.maven.org/maven2/org/jdom/jdom2/2.0.6.1/jdom2-2.0.6.1.jar), and place+`aliyun-sdk-oss-3.18.5.jar` and `jdom2-2.0.6.1.jar` on the Spark driver and executor classpaths.+Iceberg 1.11.0 expects `OSS#deleteObject(String, String)` to return `VoidResult`, which is only true+from SDK 3.12.0 onward; with 3.10.2 every OSS delete fails with `NoSuchMethodError`.### GCSdiff --git a/gradle/libs.versions.toml b/gradle/libs.versions.tomlindex 1b0e99f5d2..9a45098f2c 100644--- a/gradle/libs.versions.toml+++ b/gradle/libs.versions.toml@@ -192,7 +192,9 @@ datanucleus-jdo = "3.2.0-m3"hudi = "0.15.0"google-auth = "1.28.0"aliyun-credentials = "0.3.12"-aliyun-sdk-oss = "3.10.2"+# Match Hadoop 3.3.6. Iceberg 1.11.0 expects OSS.deleteObject(String, String)+# to return VoidResult. SDK 3.10.2 returns void and fails to link on delete.+aliyun-sdk-oss = "3.13.0"tencentcloud-sdk-sts = "3.1.1239"openlineage = "1.29.0"jcstress = "0.8.15"