wsjz commented on code in PR #16429: URL: https://github.com/apache/doris/pull/16429#discussion_r1099586293
########## docs/en/docs/lakehouse/multi-catalog/iceberg.md: ########## @@ -52,6 +54,50 @@ CREATE CATALOG iceberg PROPERTIES ( ); ``` +### Iceberg Native Catalog + +<version since="dev"> + +Access metadata with the iceberg API. The Hive, REST, Glue and other services can serve as the iceberg catalog. + +- Using Iceberg Hive Catalog + +```sql +CREATE CATALOG iceberg PROPERTIES ( + 'type'='iceberg', + 'iceberg.catalog.type'='hms', + 'hive.metastore.uris' = 'thrift://172.21.0.1:7004', + 'hadoop.username' = 'hive', + 'dfs.nameservices'='your-nameservice', + 'dfs.ha.namenodes.your-nameservice'='nn1,nn2', + 'dfs.namenode.rpc-address.your-nameservice.nn1'='172.21.0.2:4007', + 'dfs.namenode.rpc-address.your-nameservice.nn2'='172.21.0.3:4007', + 'dfs.client.failover.proxy.provider.your-nameservice'='org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider' +); +``` + +- Using Iceberg REST Catalog + +RESTful service as the server side. Implementing RESTCatalog interface of iceberg to obtain metadata. + +```sql +CREATE CATALOG iceberg PROPERTIES ( + 'type'='iceberg', + 'iceberg.catalog.type'='rest', + 'uri' = 'http://172.21.0.1:8181', +); +``` + +If you want to use S3 storage, the following properties need to be set. + +``` +"AWS_ACCESS_KEY" = "username" +"AWS_SECRET_KEY" = "password" +"AWS_REGION" = "region-name" +"AWS_ENDPOINT" = "http://endpoint-uri" +"AWS_CREDENTIALS_PROVIDER" = "provider-class-name" // Optional. The default credentials class is based on BasicAWSCredentials. Review Comment: use ConfigurationAWSCredentialsProviderFactory for glue -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org