Skip to main content

Alibaba Cloud DLF

Before creating a catalog or running a load or export job, ensure that the warehouse can reach the service endpoint and that its credentials have the required metadata and data permissions. For private endpoints or service-side credential files, coordinate connectivity and provisioning with VeloDB Cloud support.

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

DLF versions​

  • For DLF 1.0 version, VeloDB Cloud accesses DLF through DLF's Hive Metastore compatible interface. Supports Paimon Catalog and Hive Catalog.
  • For DLF versions 2.5 and later, VeloDB Cloud 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 Catalog. Note that the object storage path must end with /.NoneNo

Note:

For compatibility with Apache Doris before 3.1.0, please use the former names.

DLF 2.5+ (REST Catalog)​

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. VeloDB Cloud 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 PROPERTIES (
'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 2.5+ (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>'
);

Common errors​

For access-denied errors, check the identity and its permissions for both metadata and data. For timeouts, verify the service endpoint and network path from the warehouse. For errors involving a keytab, CA certificate, Hadoop XML file, or JDBC driver, contact VeloDB Cloud support with the error text and the operation that failed.