lsc-jx opened a new issue, #71147:
URL: https://github.com/apache/doris/issues/71147

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   4.1.5
   
   ### What's Wrong?
   
   With an Iceberg catalog using `iceberg.catalog.type=glue` and static 
`glue.access_key` / `glue.secret_key` (and matching `s3.*` credentials), 
**table schema can be read** (`DESC db.table` works), but queries that read 
Iceberg metadata on S3 (e.g. `SELECT COUNT(*) FROM catalog.db.table$files`) 
fail on BE with:
   
   ```
   ERROR 1105 (HY000): errCode = 2, detailMessage = 
(10.151.232.7)[JNI_ERROR]IOException: Failed to open scan task: 
ManifestReadTask{file=s3://.../metadata/...-m0.avro, ...}
   | CAUSED BY: IllegalArgumentException: Cannot load class 
com.amazonaws.glue.catalog.credentials.ConfigurationAWSCredentialsProvider2x, 
it does not exist in the classpath
   | CAUSED BY: ClassNotFoundException: Cannot find class
   ```
   
   Default FE config in 4.1.x sets `aws_credentials_provider_version = v2`. The 
missing class appears to be Doris-owned (`fe-core` has 
`com.amazonaws.glue.catalog.credentials.ConfigurationAWSCredentialsProvider2x` 
on branch-4.1), but it is **not present on BE classpath** 
(`be/lib/java_extensions/`), so Iceberg cannot open manifest files on S3.
   
   Setting `aws_credentials_provider_version = v1` on all FE/BE (cluster-wide 
restart) may work around the issue, but we need to stay on **v2** (policy / 
IRSA alignment).
   
   ### What You Expected?
   
   - With v2 and catalog AK/SK, BE should load the configured AWS credentials 
provider class (or equivalent SDK v2 path) and read `metadata/*.avro` manifests.
   - `table$files` and normal `SELECT` on Iceberg tables should work.
   
   ### How to Reproduce?
   
   1. Doris **4.1.5**, cluster with Glue + S3 access.
   2. `fe.conf` / `be.conf`: default or explicit 
`aws_credentials_provider_version = v2`.
   3. Create catalog:
   
   ```sql
   CREATE CATALOG glue_iceberg_s3 PROPERTIES (
     'type' = 'iceberg',
     'iceberg.catalog.type' = 'glue',
     'warehouse' = 's3://<bucket>/iceberg-bench/',
     'glue.region' = 'us-east-1',
     'glue.endpoint' = 'https://glue.us-east-1.amazonaws.com',
     'glue.access_key' = '<AK>',
     'glue.secret_key' = '<SK>',
     's3.region' = 'us-east-1',
     's3.endpoint' = 'https://s3.us-east-1.amazonaws.com',
     's3.access_key' = '<AK>',
     's3.secret_key' = '<SK>'
   );
   ```
   
   4. `DESC glue_iceberg_s3.bench_lake.fact_order;` → succeeds.
   5. `SELECT COUNT(*) FROM glue_iceberg_s3.bench_lake.fact_order$files;` → 
fails with `ConfigurationAWSCredentialsProvider2x` ClassNotFound on BE.
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to