本文档主要介绍如何添加MaxCompute数据源。
操作步骤
- 登录LTS服务。
- 在左侧导航栏中,选择数据源管理>添加数据源。
- 在添加数据源页面设置如下参数。
参数名 说明 集群名 集群名,只支持数字与英文字母。 数据源类型 选择MaxCompute(ODPS)。 数据源参数 { "accessId":"xaccessId", "accessKey":xaccessKey", "endPoint":"http://service.cn-shanghai.maxcompute.aliyun.com/api", "project":"bds_pro", "tunnelEndPoint":"http://dt.cn-shanghai.maxcompute.aliyun.com" }
- accessId:控制台上获取的AccessKey ID。
- accessKey:控制台上获取的AccessKey Secret。
- endPoint:MaxCompute服务的连接地址。
- project:项目名称。
- tunnelEndPoint:Tunnel服务的连接地址。
说明 AccessKey ID、AccessKey Secret和Endpoint的获取方式,请参见查看AccessKey和Endpoint。
查看AccessKey和Endpoint
- 登录DataWorks管理控制台。
- 单击AccessKey 管理,进入AccessKey页面。
- 在AccessKey ID列,获取AccessKey ID。
- 单击操作列的查看 Secret,获取AccessKey Secret。
- 根据MaxCompute所在地域,参考下表获取VPC网络下Endpoint和Tunnel Endpoint。
Region 所在城市 开服状态 VPC网络Endpoint VPC网络Tunnel Endpoint 华东1 杭州 已开服 http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api http://dt.cn-hangzhou.maxcompute.aliyun-inc.com 华东2 上海 已开服 http://service.cn-shanghai.maxcompute.aliyun-inc.com/api http://dt.cn-shanghai.maxcompute.aliyun-inc.com 华北2 北京 已开服 http://service.cn-beijing.maxcompute.aliyun-inc.com/api http://dt.cn-beijing.maxcompute.aliyun-inc.com 华北3 张家口 已开服 http://service.cn-zhangjiakou.maxcompute.aliyun-inc.com/api http://dt.cn-zhangjiakou.maxcompute.aliyun-inc.com 华南1 深圳 已开服 http://service.cn-shenzhen.maxcompute.aliyun-inc.com/api http://dt.cn-shenzhen.maxcompute.aliyun-inc.com 西南1 成都 已开服 http://service.cn-chengdu.maxcompute.aliyun-inc.com/api http://dt.cn-chengdu.maxcompute.aliyun-inc.com 中国香港 香港 已开服 http://service.cn-hongkong.maxcompute.aliyun-inc.com/api http://dt.cn-hongkong.maxcompute.aliyun-inc.com 亚太东南1 新加坡 已开服 http://service.ap-southeast-1.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-1.maxcompute.aliyun-inc.com 亚太东南2 悉尼 已开服 http://service.ap-southeast-2.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-2.maxcompute.aliyun-inc.com 亚太东南3 吉隆坡 已开服 http://service.ap-southeast-3.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-3.maxcompute.aliyun-inc.com 亚太南部1 孟买 已开服 http://service.ap-south-1.maxcompute.aliyun-inc.com/api http://dt.ap-south-1.maxcompute.aliyun-inc.com 中东东部1 迪拜 已开服 http://service.me-east-1.maxcompute.aliyun-inc.com/api http://dt.me-east-1.maxcompute.aliyun-inc.com 英国(伦敦) 伦敦 已开服 http://service.uk-all.maxcompute.aliyun-inc.com/api http://dt.uk-all.maxcompute.aliyun-inc.com