Skip to main content
VeloDB Cloud 26.x is based on Apache Doris 4.x. See Version Mapping.

Alibaba Cloud OSS

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.

Configure Alibaba Cloud OSS access for these operations:

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

Configure OSS access​

These properties configure access to files in OSS. Set them on the operation that reads or writes those files:

ScenarioWhere to configure accessExample
Query a CSV, Parquet, or ORC file directlyIn the S3(...) table-valued functionQuery example below
Import OSS files into an existing VeloDB Cloud tableIn S3(...) for INSERT INTO ... SELECT, or in the WITH S3 clause of Broker LoadOSS data import
Query Hive tables whose data is stored in OSSIn the catalog properties when running CREATE CATALOGHive Catalog
Export query results to OSSIn the properties of the export commandSELECT INTO OUTFILE

For example, upload a UTF-8 file users.csv to your OSS bucket, without a header row:

1,Alice
2,Bob

Ensure the warehouse can reach the OSS endpoint and that the supplied credentials can read the object. Replace the bucket, object path, and credentials below. This query reads the file directly. It does not require creating a VeloDB Cloud table. It uses the S3-compatible s3.* property names.

SELECT id, name
FROM S3(
"uri" = "s3://your-bucket/users.csv",
"format" = "csv",
"s3.endpoint" = "oss-cn-beijing.aliyuncs.com",
"s3.region" = "cn-beijing",
"s3.access_key" = "<your-access-key>",
"s3.secret_key" = "<your-secret-key>",
"column_separator" = ",",
"csv_schema" = "id:int;name:string"
)
ORDER BY id;

Illustrative result for the file above:

+------+-------+
| id | name |
+------+-------+
| 1 | Alice |
| 2 | Bob |
+------+-------+

To persist the data in VeloDB Cloud, create a target table and use INSERT INTO ... SELECT as shown in the OSS data-import guide linked above. For other operations, place the connection properties in the corresponding catalog, load, or export statement.

OSS​

VeloDB Cloud uses an S3 client to access Alibaba Cloud OSS through the 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 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_styleuse_path_styleWhether to use path-style object URLs. Set this to match the endpoint requirements.false
oss.connection.maximums3.connection.maximumMaximum number of connections, specifies the maximum number of connections established with OSS service100
oss.connection.request.timeouts3.connection.request.timeoutRequest timeout (milliseconds), specifies the request timeout when connecting to OSS service10000
oss.connection.timeouts3.connection.timeoutConnection timeout (milliseconds), specifies the timeout when establishing connection with OSS service10000

Note:

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

Example configuration​

View 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"

Legacy S3-compatible aliases:

"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​

  • Use the oss. prefix to identify Alibaba Cloud OSS properties.
  • For compatibility with Apache Doris before 3.1, use the legacy s3. prefix.
  • Set oss.endpoint and oss.region explicitly to avoid relying on endpoint or region inference.
  • Review connection-pool and timeout settings for the expected concurrency and network conditions.

OSS-HDFS​

OSS-HDFS (JindoFS) provides an HDFS-compatible interface to Alibaba Cloud OSS. Use the OSS-HDFS endpoint and properties below instead of the S3-compatible OSS settings.

Parameters​

Property NameLegacy NameDescriptionDefault ValueRequired
oss.hdfs.endpointoss.endpointAlibaba Cloud OSS-HDFS service endpoint, e.g., cn-hangzhou.oss-dls.aliyuncs.com.NoneYes
oss.hdfs.access_keyoss.access_keyOSS Access Key for authenticationNoneYes
oss.hdfs.secret_keyoss.secret_keyOSS Secret Key, used together with Access KeyNoneYes
oss.hdfs.regionoss.regionRegion ID where the OSS bucket is located, e.g., cn-beijing.NoneNo, if the endpoint provides the region
oss.hdfs.fs.defaultFSSpecifies the file system access path for OSS, e.g., oss://my-bucket/.NoneNo
oss.hdfs.hadoop.config.resourcesSpecifies the path containing OSS file system configuration. Requires relative paths to files provisioned by VeloDB Cloud support. Example: hadoop/conf/core-site.xml,hadoop/conf/hdfs-site.xml.NoneNo
fs.oss-hdfs.supportoss.hdfs.enabledSet to true to select OSS-HDFS explicitly.NoneNo

Note:

For compatibility with Apache Doris before 3.1, use the legacy property names.

Configure the endpoint​

Set oss.hdfs.endpoint to the OSS-HDFS endpoint, formatted as <region>.oss-dls.aliyuncs.com, such as cn-hangzhou.oss-dls.aliyuncs.com.

If oss.hdfs.region is omitted, VeloDB Cloud extracts the region from a recognized endpoint format. If extraction fails, set the region explicitly or correct the endpoint. The region-extraction pattern also accepts https:// and http:// prefixes.

When using legacy names, the system determines whether it's an OSS-HDFS service based on whether the endpoint contains oss-dls.

In a future release, XML paths in oss.hdfs.hadoop.config.resources must not contain a .. parent-directory segment. Both forward-slash and backslash separators are checked. Use normal file paths.

Use configuration files​

Use oss.hdfs.hadoop.config.resources to specify a comma-separated list of XML configuration file paths.

If XML configuration files are required, VeloDB Cloud support provisions them for the warehouse and supplies the relative paths.

Explicit connection properties override the corresponding settings loaded from XML. Separate multiple resource paths with commas, for example, hadoop/conf/core-site.xml,hadoop/conf/hdfs-site.xml.

Example configuration​

View example configuration
"fs.oss-hdfs.support" = "true",
"oss.hdfs.access_key" = "your-access-key",
"oss.hdfs.secret_key" = "your-secret-key",
"oss.hdfs.endpoint" = "cn-hangzhou.oss-dls.aliyuncs.com",
"oss.hdfs.region" = "cn-hangzhou"

Legacy OSS-HDFS aliases:

"oss.hdfs.enabled" = "true",
"oss.access_key" = "your-access-key",
"oss.secret_key" = "your-secret-key",
"oss.endpoint" = "cn-hangzhou.oss-dls.aliyuncs.com",
"oss.region" = "cn-hangzhou"

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.