Skip to main content

Aliyun DLF

This document describes how to use the CREATE CATALOG statement to connect and access Alibaba Cloud Data Lake Formation (DLF) metadata service.

DLF Version Notes

  • For DLF 1.0 version, Doris accesses DLF through DLF's Hive Metastore compatible interface. Supports Paimon Catalog and Hive Catalog.
  • For DLF versions 2.5 and later, Doris accesses DLF through DLF's Rest interface. Only supports Paimon Catalog.

DLF 1.0

Parameter NameLegacy NameDescriptionDefault ValueRequired
dlf.endpoint-DLF endpoint, see: Alibaba Cloud DocumentationNoneYes
dlf.region-DLF region, see: Alibaba Cloud DocumentationNoneYes
dlf.uid-Alibaba Cloud account ID. Can be viewed in personal information at the top right corner of the console.NoneYes
dlf.access_key-Alibaba Cloud AccessKey for accessing DLF service.NoneYes
dlf.secret_key-Alibaba Cloud SecretKey for accessing DLF service.NoneYes
dlf.catalog_iddlf.catalog.idCatalog ID. Used to specify metadata catalog. If not set, the default catalog is used.NoneNo
warehouse-Storage path of the Warehouse, only required for Paimon CatalogNoneNo

DLF Rest Catalog

Supported since version 3.1.0

Parameter NameLegacy NameDescriptionDefault ValueRequired
uri-DLF REST URI. Example: http://cn-beijing-vpc.dlf.aliyuncs.comNoneYes
warehouse-Warehouse name. Note: directly fill in the name of the Catalog to connect to, not the Paimon table storage pathNoneYes
paimon.rest.token.provider-Token provider, fixed value dlfNoneYes
paimon.rest.dlf.access-key-id-Alibaba Cloud AccessKey for accessing DLF service.NoneYes
paimon.rest.dlf.access-key-secret-Alibaba Cloud SecretKey for accessing DLF service.NoneYes

DLF Rest Catalog does not require providing storage service (OSS) Endpoint and Region information. Doris will use DLF Rest Catalog's Vended Credential to obtain temporary credential information for accessing OSS.

Examples

DLF 1.0

Create a Hive Catalog with DLF as the metadata service:

CREATE CATALOG hive_dlf_catalog WITH (
'type' = 'hms',
'hive.metastore.type' = 'dlf',
'dlf.endpoint' = '<DLF_ENDPOINT>',
'dlf.region' = '<DLF_REGION>',
'dlf.uid' = '<YOUR_ALICLOUD_UID>',
'dlf.access_key' = '<YOUR_ACCESS_KEY>',
'dlf.secret_key' = '<YOUR_SECRET_KEY>'
);

Create a Paimon Catalog with DLF as the metadata service:

CREATE CATALOG paimon_dlf PROPERTIES (
'type' = 'paimon',
'paimon.catalog.type' = 'dlf',
'warehouse' = 'oss://xx/yy/',
'dlf.proxy.mode' = 'DLF_ONLY',
'dlf.endpoint' = '<DLF_ENDPOINT>',
'dlf.region' = '<DLF_REGION>',
'dlf.uid' = '<YOUR_ALICLOUD_UID>',
'dlf.access_key' = '<YOUR_ACCESS_KEY>',
'dlf.secret_key' = '<YOUR_SECRET_KEY>'
);

DLF Rest Catalog

CREATE CATALOG paimon_dlf_test PROPERTIES (
'type' = 'paimon',
'paimon.catalog.type' = 'rest',
'uri' = 'http://cn-beijing-vpc.dlf.aliyuncs.com',
'warehouse' = 'my_catalog_name',
'paimon.rest.token.provider' = 'dlf',
'paimon.rest.dlf.access-key-id' = '<YOUR_ACCESS_KEY>',
'paimon.rest.dlf.access-key-secret' = '<YOUR_SECRET_KEY>'
);