Endpoint
本文為您介紹各地域及不同網(wǎng)絡(luò)連接方式下的Endpoint信息,以及與其他阿里云產(chǎn)品互訪場景中的網(wǎng)絡(luò)連通性及計(jì)費(fèi)信息。
背景信息
MaxCompute提供MaxCompute服務(wù)和Tunnel服務(wù):
MaxCompute服務(wù):連接地址為Endpoint,取值由地域及網(wǎng)絡(luò)連接方式?jīng)Q定。您可以向MaxCompute發(fā)出除數(shù)據(jù)上傳、下載外的所有請(qǐng)求,例如創(chuàng)建表、刪除某個(gè)函數(shù)、執(zhí)行計(jì)算作業(yè)。
MaxCompute還提供了外部表功能,支持創(chuàng)建外部表來讀取OSS、OTS、MC-Hologres、HBase及RDS存儲(chǔ)的數(shù)據(jù),詳情請(qǐng)參見OSS外部表、Tablestore外部表、Hologres外部表、HBase外部表(HBase標(biāo)準(zhǔn)版或增強(qiáng)版)和RDS外部表。
Tunnel服務(wù):連接地址為Tunnel Endpoint,取值由地域及網(wǎng)絡(luò)連接方式?jīng)Q定。Tunnel服務(wù)提供上傳、下載本地或云數(shù)據(jù)源數(shù)據(jù)的能力。
更多網(wǎng)絡(luò)連接方式信息,請(qǐng)參見網(wǎng)絡(luò)連接方式。
各地域及網(wǎng)絡(luò)下的Endpoint及Tunnel Endpoint對(duì)照表,請(qǐng)參見各地域Endpoint對(duì)照表(外網(wǎng)連接方式)、各地域Endpoint對(duì)照表(阿里云VPC網(wǎng)絡(luò)連接方式)和各地域Endpoint對(duì)照表(阿里云經(jīng)典網(wǎng)絡(luò)連接方式)。
應(yīng)用場景
需要配置Endpoint或Tunnel Endpoint的場景如下:
通過工具連接MaxCompute:
使用MaxCompute客戶端(odpscmd)連接MaxCompute項(xiàng)目,需要配置odps_config.ini文件,請(qǐng)參見安裝并配置MaxCompute客戶端。
使用MaxCompute Studio連接MaxCompute項(xiàng)目,請(qǐng)參見管理項(xiàng)目連接。
使用DataWorks連接MaxCompute數(shù)據(jù)源,請(qǐng)參見配置MaxCompute數(shù)據(jù)源。
通過代碼配置連接MaxCompute項(xiàng)目:
使用SDK方式連接MaxCompute項(xiàng)目,請(qǐng)參見Java SDK介紹和Python SDK示例:SQL。
使用JDBC方式連接MaxCompute項(xiàng)目,請(qǐng)參見JDBC介紹。
使用PyODPS創(chuàng)建MaxCompute入口對(duì)象、配置PyODPS,請(qǐng)參見配置選項(xiàng)。
使用SQLTask配合Tunnel服務(wù)導(dǎo)出SQL運(yùn)行結(jié)果,請(qǐng)參見SQLTask配合Tunnel方式導(dǎo)出。
注意事項(xiàng)
使用Tunnel服務(wù)時(shí),您需要注意:
若您未配置Tunnel Endpoint,客戶端會(huì)自動(dòng)向MaxCompute服務(wù)獲取Tunnel Endpoint。MaxCompute服務(wù)通常會(huì)依據(jù)客戶端請(qǐng)求的網(wǎng)絡(luò)類型(公網(wǎng)、VPC網(wǎng)絡(luò)等)以及Tunnel Endpoint繁忙程度等因素,向客戶端返回合適的Tunnel Endpoint。
客戶端每次從MaxCompute服務(wù)自動(dòng)獲取到的Tunnel Endpoint是不固定的,請(qǐng)謹(jǐn)慎規(guī)劃客戶端所在網(wǎng)絡(luò)的安全策略(包括并不限于網(wǎng)絡(luò)白名單、防火墻規(guī)則、VPC安全組規(guī)則等), 以確保客戶端能夠正常連接Tunnel Endpoint。
說明通過MaxCompute服務(wù)動(dòng)態(tài)獲取到的Tunnel Endpoint包括長期可用Tunnel Endpoint和短期可用Tunnel Endpoint。短期可用Tunnel Endpoint是MaxCompute服務(wù)高可用能力的一部分, 創(chuàng)建和銷毀這類Endpoint是系統(tǒng)自動(dòng)行為,請(qǐng)勿保存短期可用Tunnel Endpoint。關(guān)于長期可用Tunnel Endpoint的詳情,請(qǐng)參見各地域Endpoint對(duì)照表(外網(wǎng)連接方式)和各地域Endpoint對(duì)照表(阿里云經(jīng)典網(wǎng)絡(luò)連接方式)。
若您已配置Tunnel Endpoint,以已配置的Endpoint為準(zhǔn),不會(huì)自動(dòng)向MaxCompute服務(wù)請(qǐng)求獲取Tunnel Endpoint。
Tunnel Endpoint不支持跨域連接,請(qǐng)務(wù)必配置與客戶端所在地域和網(wǎng)絡(luò)類型一致的Endpoint以確保訪問正常。
不同地域、網(wǎng)絡(luò)類型的Tunnel服務(wù)計(jì)費(fèi)規(guī)則不統(tǒng)一,詳細(xì)計(jì)費(fèi)規(guī)則,請(qǐng)參見計(jì)費(fèi)規(guī)則。
為避免因數(shù)據(jù)集成類工具(或產(chǎn)品)的兼容性問題影響使用, 建議您選擇與MaxCompute產(chǎn)品較為兼容的數(shù)據(jù)集成類產(chǎn)品, 比如DataWorks數(shù)據(jù)集成等。
網(wǎng)絡(luò)連接方式
您可以通過如下三種連接方式訪問MaxCompute服務(wù)和Tunnel服務(wù):
從外網(wǎng)訪問MaxCompute服務(wù)和Tunnel服務(wù)。
從阿里云經(jīng)典網(wǎng)絡(luò)訪問MaxCompute服務(wù)和Tunnel服務(wù)。
從阿里云VPC網(wǎng)絡(luò)訪問MaxCompute服務(wù)和Tunnel服務(wù)。
通過MaxCompute服務(wù)讀寫OSS及Tablestore存儲(chǔ)的數(shù)據(jù)時(shí),您需要注意:
當(dāng)MaxCompute和Tablestore或OSS在同一地域時(shí),上述三種連接方式均可用,推薦采用阿里云經(jīng)典網(wǎng)絡(luò)或VPC網(wǎng)絡(luò)連接方式,性能更優(yōu)。
當(dāng)MaxCompute和Tablestore或OSS不在同一地域時(shí),推薦采用外網(wǎng)連接方式。如果采用阿里云經(jīng)典網(wǎng)絡(luò)或VPC網(wǎng)絡(luò)連接方式,會(huì)存在連通性問題。
計(jì)費(fèi)規(guī)則
MaxCompute服務(wù)和Tunnel服務(wù)的計(jì)費(fèi)規(guī)則如下。
服務(wù)類型 | 計(jì)費(fèi)規(guī)則 |
MaxCompute服務(wù) | 開發(fā)各種類型作業(yè)及通過外部表使用SQL作業(yè)讀取數(shù)據(jù)、寫數(shù)據(jù)會(huì)產(chǎn)生計(jì)算費(fèi)用。計(jì)費(fèi)規(guī)則取決于您創(chuàng)建MaxCompute項(xiàng)目時(shí)選擇的計(jì)費(fèi)方式,請(qǐng)參見計(jì)算費(fèi)用(包年包月)或計(jì)算費(fèi)用(按量付費(fèi))。 |
數(shù)據(jù)傳輸服務(wù)(Tunnel) | 使用Tunnel服務(wù)上傳數(shù)據(jù)時(shí),不計(jì)費(fèi)。 您在任意地域?qū)υ茢?shù)據(jù)源或本地?cái)?shù)據(jù)源使用Tunnel服務(wù)下載數(shù)據(jù)時(shí):
|
各地域Endpoint對(duì)照表(外網(wǎng)連接方式)
Endpoint支持HTTP和HTTPS,若需要加密請(qǐng)求,請(qǐng)使用HTTPS。
以下Tunnel Endpoint僅適用于名稱為tunnel endpoint
的參數(shù)或選項(xiàng)。
地域 | 所在城市 | 開服狀態(tài) | 外網(wǎng)Endpoint | 外網(wǎng)Tunnel Endpoint |
中國 | 華東1(杭州) | 已開服 | http://service.cn-hangzhou.maxcompute.aliyun.com/api | http://dt.cn-hangzhou.maxcompute.aliyun.com |
中國 | 華東2(上海) | 已開服 | http://service.cn-shanghai.maxcompute.aliyun.com/api | http://dt.cn-shanghai.maxcompute.aliyun.com |
中國 | 華東2金融云(上海) | 已開服 | http://service.cn-shanghai-finance-1.maxcompute.aliyun.com/api | http://dt.cn-shanghai-finance-1.maxcompute.aliyun.com |
中國 | 華北2(北京) | 已開服 | http://service.cn-beijing.maxcompute.aliyun.com/api | http://dt.cn-beijing.maxcompute.aliyun.com |
中國 | 華北2政務(wù)云(北京) | 已開服 | http://service.cn-north-2-gov-1.maxcompute.aliyun.com/api | http://dt.cn-north-2-gov-1.maxcompute.aliyun.com |
中國 | 華北3(張家口) | 已開服 | http://service.cn-zhangjiakou.maxcompute.aliyun.com/api | http://dt.cn-zhangjiakou.maxcompute.aliyun.com |
中國 | 華北6(烏蘭察布) | 已開服 | http://service.cn-wulanchabu.maxcompute.aliyun.com/api | http://dt.cn-wulanchabu.maxcompute.aliyun.com |
中國 | 華南1(深圳) | 已開服 | http://service.cn-shenzhen.maxcompute.aliyun.com/api | http://dt.cn-shenzhen.maxcompute.aliyun.com |
中國 | 華南1金融云(深圳) | 已開服 | http://service.cn-shenzhen-finance-1.maxcompute.aliyun.com/api | http://dt.cn-shenzhen-finance-1.maxcompute.aliyun.com |
中國 | 西南1(成都) | 已開服 | http://service.cn-chengdu.maxcompute.aliyun.com/api | http://dt.cn-chengdu.maxcompute.aliyun.com |
中國 | 香港 | 已開服 | http://service.cn-hongkong.maxcompute.aliyun.com/api | http://dt.cn-hongkong.maxcompute.aliyun.com |
亞太 | 新加坡 | 已開服 | http://service.ap-southeast-1.maxcompute.aliyun.com/api | http://dt.ap-southeast-1.maxcompute.aliyun.com |
亞太 | 澳大利亞(悉尼)關(guān)停中 | 已開服 | http://service.ap-southeast-2.maxcompute.aliyun.com/api | http://dt.ap-southeast-2.maxcompute.aliyun.com |
亞太 | 馬來西亞(吉隆坡) | 已開服 | http://service.ap-southeast-3.maxcompute.aliyun.com/api | http://dt.ap-southeast-3.maxcompute.aliyun.com |
亞太 | 印度尼西亞(雅加達(dá)) | 已開服 | http://service.ap-southeast-5.maxcompute.aliyun.com/api | http://dt.ap-southeast-5.maxcompute.aliyun.com |
亞太 | 日本(東京) | 已開服 | http://service.ap-northeast-1.maxcompute.aliyun.com/api | http://dt.ap-northeast-1.maxcompute.aliyun.com |
歐洲與美洲 | 德國(法蘭克福) | 已開服 | http://service.eu-central-1.maxcompute.aliyun.com/api | http://dt.eu-central-1.maxcompute.aliyun.com |
歐洲與美洲 | 美國(硅谷) | 已開服 | http://service.us-west-1.maxcompute.aliyun.com/api | http://dt.us-west-1.maxcompute.aliyun.com |
歐洲與美洲 | 美國(弗吉尼亞) | 已開服 | http://service.us-east-1.maxcompute.aliyun.com/api | http://dt.us-east-1.maxcompute.aliyun.com |
歐洲與美洲 | 英國(倫敦) | 已開服 | http://service.eu-west-1.maxcompute.aliyun.com/api | http://dt.eu-west-1.maxcompute.aliyun.com |
中東與印度 | 阿聯(lián)酋(迪拜) | 已開服 | http://service.me-east-1.maxcompute.aliyun.com/api | http://dt.me-east-1.maxcompute.aliyun.com |
各地域Endpoint對(duì)照表(阿里云VPC網(wǎng)絡(luò)連接方式)
Endpoint支持HTTP和HTTPS,若需要加密請(qǐng)求,請(qǐng)使用HTTPS。
以下Tunnel Endpoint僅適用于名稱為tunnel endpoint
的參數(shù)或選項(xiàng)。
地域 | 所在城市 | 開服狀態(tài) | VPC網(wǎng)絡(luò)Endpoint | VPC網(wǎng)絡(luò)Tunnel Endpoint |
中國 | 華東1(杭州) | 已開服 | http://service.cn-hangzhou-vpc.maxcompute.aliyun-inc.com/api | http://dt.cn-hangzhou-vpc.maxcompute.aliyun-inc.com |
中國 | 華東2(上海) | 已開服 | http://service.cn-shanghai-vpc.maxcompute.aliyun-inc.com/api | http://dt.cn-shanghai-vpc.maxcompute.aliyun-inc.com |
中國 | 華東2金融云(上海) | 已開服 | http://service.cn-shanghai-finance-1.maxcompute.aliyun-inc.com/api | http://dt.cn-shanghai-finance-1.maxcompute.aliyun-inc.com |
中國 | 華北2(北京) | 已開服 | http://service.cn-beijing-vpc.maxcompute.aliyun-inc.com/api | http://dt.cn-beijing-vpc.maxcompute.aliyun-inc.com |
中國 | 華北2政務(wù)云(北京) | 已開服 | http://service.cn-north-2-gov-1.maxcompute.aliyun-inc.com/api | http://dt.cn-north-2-gov-1.maxcompute.aliyun-inc.com |
中國 | 華北3(張家口) | 已開服 | http://service.cn-zhangjiakou-vpc.maxcompute.aliyun-inc.com/api | http://dt.cn-zhangjiakou-vpc.maxcompute.aliyun-inc.com |
中國 | 華北6(烏蘭察布) | 已開服 | http://service.cn-wulanchabu-vpc.maxcompute.aliyun-inc.com/api | http://dt.cn-wulanchabu-vpc.maxcompute.aliyun-inc.com |
中國 | 華南1(深圳) | 已開服 | http://service.cn-shenzhen-vpc.maxcompute.aliyun-inc.com/api | http://dt.cn-shenzhen-vpc.maxcompute.aliyun-inc.com |
中國 | 華南1金融云(深圳) | 已開服 | http://service.cn-shenzhen-finance-1.maxcompute.aliyun-inc.com/api | http://dt.cn-shenzhen-finance-1.maxcompute.aliyun-inc.com |
中國 | 西南1(成都) | 已開服 | http://service.cn-chengdu-vpc.maxcompute.aliyun-inc.com/api | http://dt.cn-chengdu-vpc.maxcompute.aliyun-inc.com |
中國 | 香港 | 已開服 | http://service.cn-hongkong.maxcompute.aliyun-inc.com/api | http://dt.cn-hongkong.maxcompute.aliyun-inc.com |
亞太 | 新加坡 | 已開服 | http://service.ap-southeast-1.maxcompute.aliyun-inc.com/api | http://dt.ap-southeast-1.maxcompute.aliyun-inc.com |
亞太 | 澳大利亞(悉尼)關(guān)停中 | 已開服 | http://service.ap-southeast-2.maxcompute.aliyun-inc.com/api | http://dt.ap-southeast-2.maxcompute.aliyun-inc.com |
亞太 | 馬來西亞(吉隆坡) | 已開服 | http://service.ap-southeast-3.maxcompute.aliyun-inc.com/api | http://dt.ap-southeast-3.maxcompute.aliyun-inc.com |
亞太 | 印度尼西亞(雅加達(dá)) | 已開服 | http://service.ap-southeast-5.maxcompute.aliyun-inc.com/api | http://dt.ap-southeast-5.maxcompute.aliyun-inc.com |
亞太 | 日本(東京) | 已開服 | http://service.ap-northeast-1.maxcompute.aliyun-inc.com/api | http://dt.ap-northeast-1.maxcompute.aliyun-inc.com |
歐洲與美洲 | 法蘭克福 | 已開服 | http://service.eu-central-1.maxcompute.aliyun-inc.com/api | http://dt.eu-central-1.maxcompute.aliyun-inc.com |
歐洲與美洲 | 硅谷 | 已開服 | http://service.us-west-1.maxcompute.aliyun-inc.com/api | http://dt.us-west-1.maxcompute.aliyun-inc.com |
歐洲與美洲 | 弗吉尼亞 | 已開服 | http://service.us-east-1.maxcompute.aliyun-inc.com/api | http://dt.us-east-1.maxcompute.aliyun-inc.com |
歐洲與美洲 | 英國(倫敦) | 已開服 | http://service.eu-west-1.maxcompute.aliyun-inc.com/api | http://dt.eu-west-1.maxcompute.aliyun-inc.com |
中東與印度 | 阿聯(lián)酋(迪拜) | 已開服 | http://service.me-east-1.maxcompute.aliyun-inc.com/api | http://dt.me-east-1.maxcompute.aliyun-inc.com |
各地域Endpoint對(duì)照表(阿里云經(jīng)典網(wǎng)絡(luò)連接方式)
Endpoint支持HTTP和HTTPS,若需要加密請(qǐng)求,請(qǐng)使用HTTPS。
以下Tunnel Endpoint僅適用于名稱為tunnel endpoint
的參數(shù)或選項(xiàng)。
地域 | 所在城市 | 開服狀態(tài) | 經(jīng)典網(wǎng)絡(luò)Endpoint | 經(jīng)典網(wǎng)絡(luò)Tunnel Endpoint |
中國 | 華東1(杭州) | 已開服 | http://service.cn-hangzhou-intranet.maxcompute.aliyun-inc.com/api | http://dt.cn-hangzhou-intranet.maxcompute.aliyun-inc.com |
中國 | 華東2(上海) | 已開服 | http://service.cn-shanghai-intranet.maxcompute.aliyun-inc.com/api | http://dt.cn-shanghai-intranet.maxcompute.aliyun-inc.com |
中國 | 華東2金融云(上海) | 已開服 | http://service.cn-shanghai-finance-1.maxcompute.aliyun-inc.com/api | http://dt.cn-shanghai-finance-1.maxcompute.aliyun-inc.com |
中國 | 華北2(北京) | 已開服 | http://service.cn-beijing-intranet.maxcompute.aliyun-inc.com/api | http://dt.cn-beijing-intranet.maxcompute.aliyun-inc.com |
中國 | 華北2政務(wù)云(北京) | 已開服 | http://service.cn-north-2-gov-1.maxcompute.aliyun-inc.com/api | http://dt.cn-north-2-gov-1.maxcompute.aliyun-inc.com |
中國 | 華北3(張家口) | 已開服 | http://service.cn-zhangjiakou-intranet.maxcompute.aliyun-inc.com/api | http://dt.cn-zhangjiakou-intranet.maxcompute.aliyun-inc.com |
中國 | 華北6(烏蘭察布) | 已開服 | http://service.cn-wulanchabu-intranet.maxcompute.aliyun-inc.com/api | http://dt.cn-wulanchabu-intranet.maxcompute.aliyun-inc.com |
中國 | 華南1(深圳) | 已開服 | http://service.cn-shenzhen-intranet.maxcompute.aliyun-inc.com/api | http://dt.cn-shenzhen-intranet.maxcompute.aliyun-inc.com |
中國 | 華南1金融云(深圳) | 已開服 | http://service.cn-shenzhen-finance-1.maxcompute.aliyun-inc.com/api | http://dt.cn-shenzhen-finance-1.maxcompute.aliyun-inc.com |
中國 | 西南1(成都) | 已開服 | http://service.cn-chengdu-intranet.maxcompute.aliyun-inc.com/api | http://dt.cn-chengdu-intranet.maxcompute.aliyun-inc.com |
中國 | 香港 | 已開服 | http://service.cn-hongkong.maxcompute.aliyun-inc.com/api | http://dt.cn-hongkong.maxcompute.aliyun-inc.com |
亞太 | 新加坡 | 已開服 | http://service.ap-southeast-1.maxcompute.aliyun-inc.com/api | http://dt.ap-southeast-1.maxcompute.aliyun-inc.com |
亞太 | 澳大利亞(悉尼)關(guān)停中 | 已開服 | http://service.ap-southeast-2.maxcompute.aliyun-inc.com/api | http://dt.ap-southeast-2.maxcompute.aliyun-inc.com |
亞太 | 馬來西亞(吉隆坡) | 已開服 | http://service.ap-southeast-3.maxcompute.aliyun-inc.com/api | http://dt.ap-southeast-3.maxcompute.aliyun-inc.com |
亞太 | 印度尼西亞(雅加達(dá)) | 已開服 | http://service.ap-southeast-5.maxcompute.aliyun-inc.com/api | http://dt.ap-southeast-5.maxcompute.aliyun-inc.com |
亞太 | 日本(東京) | 已開服 | http://service.ap-northeast-1.maxcompute.aliyun-inc.com/api | http://dt.ap-northeast-1.maxcompute.aliyun-inc.com |
歐洲與美洲 | 德國(法蘭克福) | 已開服 | http://service.eu-central-1.maxcompute.aliyun-inc.com/api | http://dt.eu-central-1.maxcompute.aliyun-inc.com |
歐洲與美洲 | 美國(硅谷) | 已開服 | http://service.us-west-1.maxcompute.aliyun-inc.com/api | http://dt.us-west-1.maxcompute.aliyun-inc.com |
歐洲與美洲 | 美國(弗吉尼亞) | 已開服 | http://service.us-east-1.maxcompute.aliyun-inc.com/api | http://dt.us-east-1.maxcompute.aliyun-inc.com |
歐洲與美洲 | 英國(倫敦) | 已開服 | http://service.eu-west-1.maxcompute.aliyun-inc.com/api | http://dt.eu-west-1.maxcompute.aliyun-inc.com |
中東與印度 | 阿聯(lián)酋(迪拜) | 已開服 | http://service.me-east-1.maxcompute.aliyun-inc.com/api | http://dt.me-east-1.maxcompute.aliyun-inc.com |