This topic describes how to add a MaxCompute data source.
Procedure
- Log on to the Lindorm Tunnel Service (LTS) console.
- In the left-side navigation pane, choose Data source management > Add data source.
- On the Add data source page, configure the following parameters.
Parameter Description Name The name of the ApsaraDB for HBase cluster to which you want to add the data source. The cluster name supports only digits and letters. Data Source Type Select MaxCompute. Parameters { "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: The AccessKey ID that you obtained in the DataWorks console.
- accessKey: The AccessKey secret that you obtained in the DataWorks console.
- endPoint: The endpoint address of the MaxCompute service.
- project: The name of your MaxCompute project.
- tunnelEndPoint: The endpoint address of the Tunnel service.
Note For more information about how to obtain the AccessKey ID, AccessKey secret, and endpoints of the MaxCompute and Tunnel services, see View the AccessKey pair and the endpoints.
View the AccessKey pair and the endpoints
- Log on to the DataWorks console.
- Click AccessKey Management to go to the AccessKey Pair page.
- In the AccessKey ID column, obtain the AccessKey ID that you want to use.
- Click View Secret in the Actions column of the AccessKey ID that you want to use to obtain the AccessKey secret.
- Obtain the endpoints of the MaxCompute and Tunnel services in a VPC based on the region where your MaxCompute project resides. The following table describes the endpoints in different regions.
Region City Service availability MaxCompute endpoint Tunnel endpoint China (Hangzhou) Hangzhou Yes http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api http://dt.cn-hangzhou.maxcompute.aliyun-inc.com China (Shanghai) Shanghai Yes http://service.cn-shanghai.maxcompute.aliyun-inc.com/api http://dt.cn-shanghai.maxcompute.aliyun-inc.com China (Beijing) Beijing Yes http://service.cn-beijing.maxcompute.aliyun-inc.com/api http://dt.cn-beijing.maxcompute.aliyun-inc.com China (Zhangjiakou) Zhangjiakou Yes http://service.cn-zhangjiakou.maxcompute.aliyun-inc.com/api http://dt.cn-zhangjiakou.maxcompute.aliyun-inc.com China (Shenzhen) Shenzhen Yes http://service.cn-shenzhen.maxcompute.aliyun-inc.com/api http://dt.cn-shenzhen.maxcompute.aliyun-inc.com China (Chengdu) Chengdu Yes http://service.cn-chengdu.maxcompute.aliyun-inc.com/api http://dt.cn-chengdu.maxcompute.aliyun-inc.com China (Hong Kong) Hong Kong Yes http://service.cn-hongkong.maxcompute.aliyun-inc.com/api http://dt.cn-hongkong.maxcompute.aliyun-inc.com Singapore Singapore Yes http://service.ap-southeast-1.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-1.maxcompute.aliyun-inc.com Australia (Sydney) Sydney Yes http://service.ap-southeast-2.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-2.maxcompute.aliyun-inc.com Malaysia (Kuala Lumpur) Kuala Lumpur Yes http://service.ap-southeast-3.maxcompute.aliyun-inc.com/api http://dt.ap-southeast-3.maxcompute.aliyun-inc.com India (Mumbai) Mumbai Yes http://service.ap-south-1.maxcompute.aliyun-inc.com/api http://dt.ap-south-1.maxcompute.aliyun-inc.com UAE (Dubai) Dubai Yes http://service.me-east-1.maxcompute.aliyun-inc.com/api http://dt.me-east-1.maxcompute.aliyun-inc.com UK (London) London Yes http://service.uk-all.maxcompute.aliyun-inc.com/api http://dt.uk-all.maxcompute.aliyun-inc.com