This topic describes how to add a MaxCompute data source.

Procedure

  1. Log on to the Lindorm Tunnel Service (LTS) console.
  2. In the left-side navigation pane, choose Data source management > Add data source.
  3. On the Add data source page, configure the following parameters.
    ParameterDescription
    NameThe 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 TypeSelect 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

  1. Log on to the DataWorks console.
  2. Click AccessKey Management to go to the AccessKey Pair page. accesskey
  3. In the AccessKey ID column, obtain the AccessKey ID that you want to use.
    id
  4. Click View Secret in the Actions column of the AccessKey ID that you want to use to obtain the AccessKey secret.
    secret
  5. 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.
    RegionCityService availabilityMaxCompute endpointTunnel endpoint
    China (Hangzhou)HangzhouYeshttp://service.cn-hangzhou.maxcompute.aliyun-inc.com/apihttp://dt.cn-hangzhou.maxcompute.aliyun-inc.com
    China (Shanghai)ShanghaiYeshttp://service.cn-shanghai.maxcompute.aliyun-inc.com/apihttp://dt.cn-shanghai.maxcompute.aliyun-inc.com
    China (Beijing)BeijingYeshttp://service.cn-beijing.maxcompute.aliyun-inc.com/apihttp://dt.cn-beijing.maxcompute.aliyun-inc.com
    China (Zhangjiakou)ZhangjiakouYeshttp://service.cn-zhangjiakou.maxcompute.aliyun-inc.com/apihttp://dt.cn-zhangjiakou.maxcompute.aliyun-inc.com
    China (Shenzhen)ShenzhenYeshttp://service.cn-shenzhen.maxcompute.aliyun-inc.com/apihttp://dt.cn-shenzhen.maxcompute.aliyun-inc.com
    China (Chengdu)ChengduYeshttp://service.cn-chengdu.maxcompute.aliyun-inc.com/apihttp://dt.cn-chengdu.maxcompute.aliyun-inc.com
    China (Hong Kong)Hong KongYeshttp://service.cn-hongkong.maxcompute.aliyun-inc.com/apihttp://dt.cn-hongkong.maxcompute.aliyun-inc.com
    SingaporeSingaporeYeshttp://service.ap-southeast-1.maxcompute.aliyun-inc.com/apihttp://dt.ap-southeast-1.maxcompute.aliyun-inc.com
    Australia (Sydney)SydneyYeshttp://service.ap-southeast-2.maxcompute.aliyun-inc.com/apihttp://dt.ap-southeast-2.maxcompute.aliyun-inc.com
    Malaysia (Kuala Lumpur)Kuala LumpurYeshttp://service.ap-southeast-3.maxcompute.aliyun-inc.com/apihttp://dt.ap-southeast-3.maxcompute.aliyun-inc.com
    India (Mumbai)MumbaiYeshttp://service.ap-south-1.maxcompute.aliyun-inc.com/apihttp://dt.ap-south-1.maxcompute.aliyun-inc.com
    UAE (Dubai)DubaiYeshttp://service.me-east-1.maxcompute.aliyun-inc.com/apihttp://dt.me-east-1.maxcompute.aliyun-inc.com
    UK (London)LondonYeshttp://service.uk-all.maxcompute.aliyun-inc.com/apihttp://dt.uk-all.maxcompute.aliyun-inc.com