Skip to main content

Aliyun OSS

This document describes the parameters required to access Alibaba Cloud OSS, which are applicable to the following scenarios:

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

Doris uses S3 Client to access Alibaba Cloud OSS through S3-compatible protocol.

Parameter Overview

Property NameLegacy NameDescriptionDefault Value
oss.endpoints3.endpointOSS endpoint, specifies the access endpoint for Alibaba Cloud OSS. Note that OSS and OSS HDFS have different endpoints.None
oss.access_keys3.access_keyOSS Access Key for authenticationNone
oss.secret_keys3.secret_keyOSS Secret Key, used together with Access KeyNone
oss.regions3.regionOSS region, specifies the region of Alibaba Cloud OSSNone
oss.use_path_styles3.use_path_styleWhether to use path-style access. Recommended to set to true for compatibility with MinIO and other non-AWS S3 servicesFALSE
oss.connection.maximums3.connection.maximumMaximum number of connections, specifies the maximum number of connections established with OSS service50
oss.connection.request.timeouts3.connection.request.timeoutRequest timeout (milliseconds), specifies the request timeout when connecting to OSS service3000
oss.connection.timeouts3.connection.timeoutConnection timeout (milliseconds), specifies the timeout when establishing connection with OSS service1000

Before version 3.1, use legacy name

Example Configuration

"oss.access_key" = "your-access-key",
"oss.secret_key" = "your-secret-key",
"oss.endpoint" = "oss-cn-beijing.aliyuncs.com",
"oss.region" = "cn-beijing"

For versions before 3.1:

"s3.access_key" = "your-access-key",
"s3.secret_key" = "your-secret-key",
"s3.endpoint" = "oss-cn-beijing.aliyuncs.com",
"s3.region" = "cn-beijing"

Usage Recommendations

  • It is recommended to use the oss. prefix for configuration parameters to ensure consistency and clarity with Alibaba Cloud OSS.
  • For versions before 3.1, please use the legacy name s3. as the prefix.
  • Configuring oss.region can improve access accuracy and performance, recommended to set.
  • Connection pool parameters can be adjusted according to concurrency requirements to avoid connection blocking.