Uh oh!
There was an error while loading. Please reload this page.
[feat](catalog)AWS Glue supports S3 access via IAM AssumeRole. - #56311
Conversation
hello-stephen
commented
Sep 22, 2025
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
CalvinKirs
commented
Sep 22, 2025
run buildall |
doris-robot
commented
Sep 22, 2025
TPC-H: Total hot run time: 1520 ms |
doris-robot
commented
Sep 22, 2025
TPC-DS: Total hot run time: 2751 ms |
doris-robot
commented
Sep 22, 2025
ClickBench: Total hot run time: 0.08 s |
hello-stephen
commented
Sep 22, 2025
FE Regression Coverage ReportIncrement line coverage |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| hiveConf.set(AWS_CATALOG_CREDENTIALS_PROVIDER_FACTORY_CLASS_KEY, | ||
| "com.amazonaws.glue.catalog.credentials.ConfigurationAWSCredentialsProviderFactory"); | ||
| hiveConf.set("hive.metastore.type", "glue"); | ||
| setHiveConfPropertiesIfNotNull(hiveConf, AWSGlueConfig.AWS_GLUE_ACCESS_KEY, baseProperties.glueAccessKey); |
There was a problem hiding this comment.
No need to check if ak sk is set or not?
There was a problem hiding this comment.
Since the authentication parameters are already validated during the initialization phase, we only need to perform null checks during usage.
| props.put("client.credentials-provider.glue.session_token", glueProperties.glueSessionToken); | ||
| } | ||
| return; | ||
| } |
There was a problem hiding this comment.
I suggest:
if (ak, sk) {
} else if (iam role) {
} else {
throw exception
}
There was a problem hiding this comment.
It’s just a personal preference—readability is much better this way, and deeply nested if/else statements aren’t very readable.
CalvinKirs
commented
Sep 23, 2025
run buildall |
doris-robot
commented
Sep 23, 2025
ClickBench: Total hot run time: 30.39 s |
hello-stephen
commented
Sep 23, 2025
FE Regression Coverage ReportIncrement line coverage |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
CalvinKirs
commented
Sep 24, 2025
run buildall |
hello-stephen
commented
Sep 24, 2025
FE UT Coverage ReportIncrement line coverage |
doris-robot
commented
Sep 24, 2025
ClickBench: Total hot run time: 30.69 s |
hello-stephen
commented
Sep 24, 2025
FE Regression Coverage ReportIncrement line coverage |
PR approved by at least one committer and no changes requested. |
Uh oh!
There was an error while loading. Please reload this page.
### What problem does this PR solve? ``` CREATE CATALOG `hive_glue_iam_role` PROPERTIES ( "type" = "hms", "hive.metastore.type" = "glue", "glue.role_arn" = "arn:aws:iam::8888888888:role/christen", "glue.endpoint" = "https://glue.us-east-1.amazonaws.com" ); CREATE CATALOG `iceberg_glue_iam_role` PROPERTIES ( "type" = "iceberg", "iceberg.catalog.type" = "glue", "warehouse" = "s3://bucket/regression/glue/", "glue.role_arn" = "arn:aws:iam::8888888888:role/christen", "glue.endpoint" = "https://glue.us-east-1.amazonaws.com" ); ```
…e#56311) ### What problem does this PR solve? ``` CREATE CATALOG `hive_glue_iam_role` PROPERTIES ( "type" = "hms", "hive.metastore.type" = "glue", "glue.role_arn" = "arn:aws:iam::8888888888:role/christen", "glue.endpoint" = "https://glue.us-east-1.amazonaws.com" ); CREATE CATALOG `iceberg_glue_iam_role` PROPERTIES ( "type" = "iceberg", "iceberg.catalog.type" = "glue", "warehouse" = "s3://bucket/regression/glue/", "glue.role_arn" = "arn:aws:iam::8888888888:role/christen", "glue.endpoint" = "https://glue.us-east-1.amazonaws.com" ); ``` (cherry picked from commit 7202586)
What problem does this PR solve?
apache/doris-website#2912