Skip to main content

Tencent COS

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 the parameters required to access Tencent Cloud COS, which apply to the following scenarios:

  • Catalog properties
  • Table Valued Function properties
  • Broker Load properties
  • Export properties
  • Outfile properties

VeloDB Cloud uses S3 Client to access Tencent Cloud COS through S3-compatible protocol.

Parameters​

Defaults below are source defaults for the provider-specific properties in VeloDB Core 26.1.3. They do not report the effective configuration of a running warehouse.

Property NameLegacy NameDescriptionDefault ValueRequired
cos.endpoints3.endpointCOS endpoint, specifies the access endpoint for Tencent Cloud COSYes
cos.access_keys3.access_keyCOS access key, used for authentication to access COSYes
cos.secret_keys3.secret_keyCOS secret key, used together with access key for authenticationYes
cos.regions3.regionCOS region, specifies the region of Tencent Cloud COSNo
cos.connection.maximums3.connection.maximumS3 maximum connections, specifies the maximum number of connections to COS service100No
cos.connection.request.timeouts3.connection.request.timeoutS3 request timeout in milliseconds, specifies the request timeout when connecting to COS service10000No
cos.connection.timeouts3.connection.timeoutS3 connection timeout in milliseconds, specifies the timeout when establishing connection to COS service10000No

Legacy aliases are retained for compatibility with Apache Doris before 3.1.

Configure access​

"cos.access_key" = "your-access-key",
"cos.secret_key" = "your-secret-key",
"cos.endpoint" = "cos.ap-beijing.myqcloud.com",
"cos.region" = "ap-beijing"

Legacy S3-compatible aliases:

"s3.access_key" = "ak",
"s3.secret_key" = "sk",
"s3.endpoint" = "cos.ap-beijing.myqcloud.com",
"s3.region" = "ap-beijing"

Usage recommendations​

  • It is recommended to use the cos. prefix for configuration parameters to ensure consistency and clarity with Tencent Cloud COS.
  • For compatibility with Apache Doris before 3.1, please use the legacy s3. prefix.
  • Configuring cos.region can improve access accuracy and performance, and it is recommended to set it.
  • Connection pool parameters can be adjusted according to concurrency requirements to avoid connection blocking.

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.