Skip to main content

Tencent COS

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

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

Parameter Overview

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 service50No
cos.connection.request.timeouts3.connection.timeoutS3 request timeout in milliseconds, specifies the request timeout when connecting to COS service3000No
cos.connection.timeouts3.connection.timeoutS3 connection timeout in milliseconds, specifies the timeout when establishing connection to COS service1000No

Before version 3.1, use legacy name

Configuration Examples

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

For versions before 3.1:

"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 versions 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.