dengc367 opened a new pull request, #15039:
URL: https://github.com/apache/gravitino/pull/15039

   ### What changes were proposed in this pull request?
   
   Update the OSS setup in the Spark and Flink connector guides to install the
   `aliyun-sdk-oss` version that matches the client's Iceberg runtime instead 
of 3.10.2, and link
   to Maven Central because the Aliyun CDN zip only exists for 3.10.2.
   
   ### Why are the changes needed?
   
   Follow-up to #14354 / #14355 for the client side. Iceberg 1.11.0 and 1.12.0 
are compiled
   against `aliyun-sdk-oss` 3.18.5 and expect `OSS#deleteObject(String, 
String)` to return
   `VoidResult`, which is only true from SDK 3.12.0 onward. With the documented 
3.10.2 jars,
   every OSS delete on a Spark/Flink client fails with `NoSuchMethodError`. 
Flink 1.19 still
   uses Iceberg 1.10.2, so it keeps SDK 3.10.2.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Docs only. Users now install the SDK version that matches their Iceberg 
runtime.
   
   ### How was this patch tested?
   
   - `javap` across SDK 3.10.2 / 3.12.0 / 3.13.0 / 3.18.5 to confirm the 
`deleteObject`
     return-type change.
   - Reproduced `NoSuchMethodError` from `OSSFileIO.deleteFile` (Iceberg 
1.11.0) with SDK
     3.10.2, and confirmed the call succeeds with 3.18.5, on classpaths 
assembled from Spark
     3.5.3 and Flink 1.20 client jars with only the documented client jars 
added.
   - Cross-checked the Iceberg 1.10.2 / 1.11.0 / 1.12.0 version catalogs for 
the SDK mapping.
   


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