适用于通过MaxCompute SQL、UDF、Spark 、MR、PyODPS/Mars、外部表或基于湖仓一体架构访问阿里云OSS、DLF、OTS(Tablestore)、Hologres等服务的场景,连接使用阿里云内部服务提供的云产品互联网络地址。
适用范围
通过外部表访问OSS、OTS
如果创建了OSS或OTS外部表,可以通过OSS、OTS的内网Endpoint访问。
各地域的OSS内网Endpoint请参见地域和Endpoint文档中,内网Endpoint列。
各地域的OTS内网Endpoint请参见服务地址中的经典网地址。表格存储实例的访问地址包含四种网络类型的 Endpoint:
经典网格式为
https://<实例名称>.cn-<region>.ots-internal.aliyuncs.com公网格式为
https://<实例名称>.cn-<region>.ots.aliyuncs.comVPC 格式为
https://<实例名称>.cn-<region>.vpc.tablestore.aliyuncs.com公网(双线)格式为
https://<实例名称>.cn-<region>.tablestore.aliyuncs.com
请在实例详情页的实例访问地址区域获取对应网络类型的 Endpoint。
其他通过外部表访问的示例可参考:Hologres外部表。
通过UDF访问OSS、OTS
如果调用UDF访问OSS、OTS,只能通过OSS、OTS的公网Endpoint访问,且在使用公网Endpoint访问前,需要先将对应Endpoint添加至MaxCompute的白名单中。
MaxCompute禁止SQL UDF通过内网直接访问OSS,若有需求可参考MaxCompute SQL UDF/Spark/MaxFrame作业访问OSS内网行为变更。
白名单添加步骤如下:
将待访问的OSS、OTS的公网Endpoint添加至MaxCompute白名单
通过提交工单申请将待访问的OSS、OTS的公网Endpoint添加至MaxCompute白名单。
各地域的公网Endpoint获取详情如下:
各地域的OSS公网Endpoint请参见地域和Endpoint文档中,公网Endpoint列。
各地域的OTS公网Endpoint请参见服务地址中的公网地址。
使用公网Endpoint访问OSS或OTS。
Spark on MaxCompute任务示例可参考:网络白名单配置。