Skip to main content

Tencent COS

Tencent Cloud COS Access Parameters​

This document introduces the parameters required to access Tencent Cloud COS, applicable to the following scenarios:

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

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

Parameter Overview​

Property NameFormer NameDescriptionDefault ValueRequired
s3.endpointcos.endpointCOS endpoint, specifies the access endpoint of Tencent Cloud COSYes
s3.regioncos.regionCOS region, specifies the region of Tencent Cloud COSNo
s3.access_keycos.access_keyCOS access key, the access key for authenticationYes
s3.secret_keycos.secret_keyCOS secret key, the secret key used with the access keyYes
s3.connection.maximumMaximum S3 connections, specifies the maximum number of connections to the COS service50No
s3.connection.request.timeoutS3 request timeout, in milliseconds, specifies the request timeout when connecting to the COS service3000No
s3.connection.timeoutS3 connection timeout, in milliseconds, specifies the timeout when establishing a connection to the COS service1000No
s3.sts_endpointNot supported yetNo
s3.sts_regionNot supported yetNo
s3.iam_roleNot supported yetNo
s3.external_idNot supported yetNo

Authentication Configuration​

When accessing Tencent Cloud COS, you need to provide Tencent Cloud's Access Key and Secret Key, which are the following parameters:

  • s3.access_key (or cos.access_key)
  • s3.secret_key (or cos.secret_key)

Example Configuration​

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