Gabriel39 commented on code in PR #71089:
URL: https://github.com/apache/doris/pull/71089#discussion_r4740190405
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergConnector.java:
##########
@@ -1125,13 +1125,35 @@ private Catalog createDlfCatalog(String catalogName,
if (!chosenS3.isPresent() ||
!"OSS".equals(chosenS3.get().providerName())) {
throw new DorisConnectorException("Iceberg dlf catalog requires
OSS storage properties");
}
+ Map<String, String> storageHadoopConfig = buildStorageHadoopConfig();
DlfMetaStoreProperties dlf = (DlfMetaStoreProperties)
MetaStoreProviders.bindForType(
- IcebergCatalogProperties.TYPE_DLF, properties,
buildStorageHadoopConfig());
- Configuration conf =
IcebergCatalogFactory.buildDlfConfiguration(dlf.toDlfCatalogConf());
+ IcebergCatalogProperties.TYPE_DLF, properties,
storageHadoopConfig);
+ Map<String, String> dlfConf = dlf.toDlfCatalogConf();
+ Configuration conf;
+ AbstractHmsMetaStoreProperties proxyHms;
+ if ("DLF_ONLY".equals(dlfConf.get("dlf.catalog.proxyMode"))) {
+ conf = IcebergCatalogFactory.buildDlfConfiguration(dlfConf);
+ proxyHms = null;
+ } else {
+ // Proxy modes also open HMS clients: preserve their URI,
resources and metadata identity
+ // without running FileIO under that identity or repeating the
storage overlay afterwards.
+ AbstractHmsMetaStoreProperties hms =
(AbstractHmsMetaStoreProperties) MetaStoreProviders.bindForType(
+ IcebergCatalogProperties.TYPE_HMS, properties,
storageHadoopConfig);
+ Map<String, String> overrides =
hms.toHiveConfOverrides(IcebergConf.metastoreClientTimeoutSecond(context));
Review Comment:
Fixed in a09031aacd. Iceberg now declares all HMS URI aliases and both DLF
endpoint aliases (HTTPS port 443) in its own security surface, retaining KMS,
JDBC flavor gating and secret masking. Tests use the actual Iceberg provider
through native DLF CREATE/ALTER for all five HMS-using proxy modes, both bare
DLF aliases, public endpoints, disabled checker behavior and unchanged
rejected-ALTER state. The baseline missed these probes; the candidate passes.
Local self-review completed before committing, followed by 265 classes / 3585
tests (zero failures/errors, 11 existing disabled tests), full FE
build/Checkstyle and both packaged DLF SQL suites.
--
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]