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:
| Scenario | Where to configure access | Example |
|---|---|---|
| Query a CSV, Parquet, or ORC file directly | In the S3(...) table-valued function | Query example below |
| Import OSS files into an existing VeloDB Cloud table | In S3(...) for INSERT INTO ... SELECT, or in the WITH S3 clause of Broker Load | OSS data import |
| Query Hive tables whose data is stored in OSS | In the catalog properties when running CREATE CATALOG | Hive Catalog |
| Export query results to OSS | In the properties of the export command | SELECT 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 Name | Legacy Name | Description | Default Value |
|---|---|---|---|
oss.endpoint | s3.endpoint | OSS endpoint, specifies the access endpoint for Alibaba Cloud OSS. Note that OSS and OSS HDFS have different endpoints. | None |
oss.access_key | s3.access_key | OSS Access Key for authentication | None |
oss.secret_key | s3.secret_key | OSS Secret Key, used together with Access Key | None |
oss.region | s3.region | OSS region, specifies the region of Alibaba Cloud OSS | None |
oss.use_path_style | use_path_style | Whether to use path-style object URLs. Set this to match the endpoint requirements. | false |
oss.connection.maximum | s3.connection.maximum | Maximum number of connections, specifies the maximum number of connections established with OSS service | 100 |
oss.connection.request.timeout | s3.connection.request.timeout | Request timeout (milliseconds), specifies the request timeout when connecting to OSS service | 10000 |
oss.connection.timeout | s3.connection.timeout | Connection timeout (milliseconds), specifies the timeout when establishing connection with OSS service | 10000 |
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.endpointandoss.regionexplicitly 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 Name | Legacy Name | Description | Default Value | Required |
|---|---|---|---|---|
oss.hdfs.endpoint | oss.endpoint | Alibaba Cloud OSS-HDFS service endpoint, e.g., cn-hangzhou.oss-dls.aliyuncs.com. | None | Yes |
oss.hdfs.access_key | oss.access_key | OSS Access Key for authentication | None | Yes |
oss.hdfs.secret_key | oss.secret_key | OSS Secret Key, used together with Access Key | None | Yes |
oss.hdfs.region | oss.region | Region ID where the OSS bucket is located, e.g., cn-beijing. | None | No, if the endpoint provides the region |
oss.hdfs.fs.defaultFS | Specifies the file system access path for OSS, e.g., oss://my-bucket/. | None | No | |
oss.hdfs.hadoop.config.resources | Specifies 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. | None | No | |
fs.oss-hdfs.support | oss.hdfs.enabled | Set to true to select OSS-HDFS explicitly. | None | No |
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.