OSS-HDFS

Updated at:

Property definition

  • Data source type: oss_hdfs

  • Supported configuration mode: Connection string mode (UrlMode)

Parameters

OSS-HDFS supports only the connection string mode. All parameters are of type String.

ParameterRequiredExampleDescription
regionIdYescn-beijingThe ID of the region where the OSS-HDFS bucket resides.
endpointYescn-beijing.oss-dls.aliyuncs.comThe endpoint of OSS-HDFS.
bucketYestest-oss-shThe name of the OSS-HDFS bucket.
authTypeYesRamRoleThe authentication method. Valid values: RamRole and Ak.
authIdentityYes112345The ID of the RAM role.
accessIdYesxxxxxThe AccessKey ID used to authenticate in AccessKey mode.
accessKeyYesxxxxxThe AccessKey secret used to authenticate in AccessKey mode.
envTypeYesDevThe 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"
}