属性定义

  • 数据源类型type为: maxcompute

  • 支持的配置模式(ConnectionPropertiesMode):UrlMode(连接串模式)

本账号访问身份模式

名称

类型

示例值

是否必填

描述和注意点

project

String

hello_mc_project

MaxCompute项目名称。

regionId

String

cn-shanghai

MaxCompute项目所属的地域标识,例如

  • cn-shanghai:表示上海地域。

  • cn-beijing:表示北京地域。

endpointMode

String

SelfAdaption

用于表达访问地址的配置模式:

  • SelfAdaption:表示自适应。

  • Custom:表示自定义访问地址。

endpoint

String

http://service.cn-shanghai.maxcompute.aliyun-inc.com/api

  • MaxCompute Service访问接入点Endpoint,表示经典网络接入地址。注意历史上service.${regionId}.maxcompute.aliyun-inc.com/api在经典、专有网络域名上,字面值是一致的。

  • 新增访问格式service.${regionId}-intranet.maxcompute.aliyun-inc.com/api

tunnelServer

String

http://dt.cn-shanghai.maxcompute.aliyun-inc.com

  • MaxCompute Tunnel访问接入点Endpoint,表示经典网络接入地址。注意历史上dt.${regionId}.maxcompute.aliyun-inc.com在经典、专有网络域名上,字面值是一致的。

  • 新增访问格式dt.${regionId}-intranet.maxcompute.aliyun-inc.com

authType

String

Executor

数据源访问身份,枚举值有(忽略大小写):

  • Executor:执行者。

  • TaskOwner:任务责任人。

  • PrimaryAccount:主账号。

  • SubAccount:指定的某一个子账号。

  • RamRole:指定的RAM角色。

  • HadoopUser:身份映射,EMR/hadoop场景。

  • Ak:表示直接填写的AccessKey信息。

authIdentity

String

1150698034967265

同账号场景下,对应的任务提交人的云账号ID。

envType

String

Dev

envType表示数据源环境信息

  • Dev:开发环境。

  • Prod:生产环境。

跨账号模式

名称

类型

示例值

是否必填

描述和注意点

project

String

hello_mc_project

MaxCompute项目名称。

regionId

String

cn-shanghai

MaxCompute项目所属的地域标示,例如

  • cn-shanghai:表示上海地域。

  • cn-beijing:表示北京地域。

endpointMode

String

SelfAdaption

用于表达访问地址的配置模式,分别有自适应和自定义2类:

  • SelfAdaption:表示自适应。

  • Custom:表示自定义访问地址。

endpoint

String

http://service.cn-shanghai.maxcompute.aliyun-inc.com/api

  • MaxCompute Service访问接入点Endpoint,表示经典网络接入地址。注意历史上service.${regionId}.maxcompute.aliyun-inc.com/api在经典、专有网络域名上,字面值是一致的。

  • 新增访问格式service.${regionId}-intranet.maxcompute.aliyun-inc.com/api

tunnelServer

String

http://dt.cn-shanghai.maxcompute.aliyun-inc.com

  • MaxCompute Tunnel访问接入点Endpoint,表示经典网络接入地址。注意历史上dt.${regionId}.maxcompute.aliyun-inc.com在经典、专有网络域名上,字面值是一致的。

  • 新增访问格式dt.${regionId}-intranet.maxcompute.aliyun-inc.com

authType

String

RamRole

固定为RamRole

crossAccountOwnerId

String

1150698034967265

跨阿里云主账号的对方主账号ID,跨账号情况下必填。

crossAccountRoleName

String

mc-accross-role-name

跨账号场景下填写的对方账号下的角色名称。

envType

String

Dev

envType表示数据源环境信息。

  • Dev:开发环境。

  • Prod:生产环境。

AK模式

名称

类型

示例值

是否必填

描述和注意点

project

String

hello_mc_project

MaxCompute项目名称。

endpoint

String

http://service.cn-shanghai.maxcompute.aliyun-inc.com/api

  • MaxCompute Service访问接入点Endpoint,表示经典网络接入地址。注意历史上service.${regionId}.maxcompute.aliyun-inc.com/api在经典、专有网络域名上,字面值是一致的。

  • 新增访问格式service.${regionId}-intranet.maxcompute.aliyun-inc.com/api

tunnelServer

String

http://dt.cn-shanghai.maxcompute.aliyun-inc.com

  • MaxCompute Tunnel访问接入点Endpoint,表示经典网络接入地址。注意历史上dt.${regionId}.maxcompute.aliyun-inc.com在经典、专有网络域名上,字面值是一致的。

  • 新增访问格式dt.${regionId}-intranet.maxcompute.aliyun-inc.com

authType

String

Ak

固定为Ak

accessId

String

xxxxx

AK模式下访问数据源,使用的AccessID,AK模式时必填。

accessKey

String

xxxxx

AK模式下访问数据源,使用的AccessKey,AK模式时必填。

envType

String

Dev

envType表示数据源环境信息。

  • Dev:开发环境。

  • Prod:生产环境。

数据源配置示例

访问身份执行者模式

{
    "endpoint": "http://service.cn-shanghai.maxcompute.aliyun-inc.com/api",
    "envType": "Prod",
    "project": "skyfire_20221228",
    "dsVersion": "2",
    "authType": "Executor",
    "endpointMode": "Custom",
    "regionId": "cn-shanghai"
}

跨账号模式

{
  "project": "skyfire_20221228",
  "crossAccountOwnerId": "1150698034967265",
  "crossAccountRoleName": "mc-accross-role-name",
  "endpointMode": "SelfAdaption",
  "envType": "Prod",
  "dsVersion": "2",
  "authType": "RamRole",
  "regionId": "cn-shanghai"
}

AK模式

{
  "accessId": "mc_demo",
  "endpoint": "http://service.cn-shanghai.maxcompute.aliyun-inc.com/api",
  "accessKey": "***",
  "envType": "Prod",
  "project": "mc_demo",
  "authType": "Ak"
}