OSS-HDFS
Updated at:
Property definition
Data source type:
oss_hdfsSupported configuration mode: Connection string mode (
UrlMode)
Parameters
OSS-HDFS supports only the connection string mode. All parameters are of type String.
| Parameter | Required | Example | Description |
|---|---|---|---|
regionId | Yes | cn-beijing | The ID of the region where the OSS-HDFS bucket resides. |
endpoint | Yes | cn-beijing.oss-dls.aliyuncs.com | The endpoint of OSS-HDFS. |
bucket | Yes | test-oss-sh | The name of the OSS-HDFS bucket. |
authType | Yes | RamRole | The authentication method. Valid values: RamRole and Ak. |
authIdentity | Yes | 112345 | The ID of the RAM role. |
accessId | Yes | xxxxx | The AccessKey ID used to authenticate in AccessKey mode. |
accessKey | Yes | xxxxx | The AccessKey secret used to authenticate in AccessKey mode. |
envType | Yes | Dev | The environment of the data source. Valid values: Dev (development environment) and Prod (production environment). |
Configuration examples
Both examples use the connection string mode. Set authType to Ak for AccessKey authentication or RamRole for RAM role authentication.
AccessKey mode
{
"envType": "Prod",
"endpoint": "cn-beijing.oss-dls.aliyuncs.com",
"bucket": "test-oss-sh",
"authType": "Ak",
"accessId": "xxx",
"accessKey": "xxx"
}RAM role mode
{
"envType": "Prod",
"endpoint": "cn-beijing.oss-dls.aliyuncs.com",
"bucket": "test-oss-sh",
"authType": "RamRole",
"authIdentity": "1123456"
}Is this page helpful?