blob: 8f148663aaad33b5a5e8f42e496785687b9ecdbe [file] [log] [blame]
"use strict";(self.webpackChunkdoris_website=self.webpackChunkdoris_website||[]).push([[34401],{15680:(e,t,a)=>{a.d(t,{xA:()=>u,yg:()=>g});var n=a(296540);function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach((function(t){o(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function p(e,t){if(null==e)return{};var a,n,o=function(e,t){if(null==e)return{};var a,n,o={},r=Object.keys(e);for(n=0;n<r.length;n++)a=r[n],t.indexOf(a)>=0||(o[a]=e[a]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)a=r[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}var i=n.createContext({}),c=function(e){var t=n.useContext(i),a=t;return e&&(a="function"==typeof e?e(t):l(l({},t),e)),a},u=function(e){var t=c(e.components);return n.createElement(i.Provider,{value:t},e.children)},m="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var a=e.components,o=e.mdxType,r=e.originalType,i=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),m=c(a),y=o,g=m["".concat(i,".").concat(y)]||m[y]||s[y]||r;return a?n.createElement(g,l(l({ref:t},u),{},{components:a})):n.createElement(g,l({ref:t},u))}));function g(e,t){var a=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var r=a.length,l=new Array(r);l[0]=y;var p={};for(var i in t)hasOwnProperty.call(t,i)&&(p[i]=t[i]);p.originalType=e,p[m]="string"==typeof e?e:o,l[1]=p;for(var c=2;c<r;c++)l[c]=a[c];return n.createElement.apply(null,l)}return n.createElement.apply(null,a)}y.displayName="MDXCreateElement"},973968:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>i,contentTitle:()=>l,default:()=>s,frontMatter:()=>r,metadata:()=>p,toc:()=>c});var n=a(58168),o=(a(296540),a(15680));const r={title:"\u963f\u91cc\u4e91 Max Compute",language:"zh-CN"},l=void 0,p={unversionedId:"lakehouse/database/max-compute",id:"version-2.1/lakehouse/database/max-compute",title:"\u963f\u91cc\u4e91 Max Compute",description:"\x3c!--",source:"@site/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/lakehouse/database/max-compute.md",sourceDirName:"lakehouse/database",slug:"/lakehouse/database/max-compute",permalink:"/zh-CN/docs/lakehouse/database/max-compute",draft:!1,tags:[],version:"2.1",frontMatter:{title:"\u963f\u91cc\u4e91 Max Compute",language:"zh-CN"},sidebar:"docs",previous:{title:"Elasticsearch",permalink:"/zh-CN/docs/lakehouse/database/es"},next:{title:"\u6587\u4ef6\u5206\u6790",permalink:"/zh-CN/docs/lakehouse/file"}},i={},c=[{value:"\u4f7f\u7528\u987b\u77e5",id:"\u4f7f\u7528\u987b\u77e5",level:2},{value:"\u8fde\u63a5 Max Compute",id:"\u8fde\u63a5-max-compute",level:2},{value:"\u9650\u989d",id:"\u9650\u989d",level:2},{value:"\u5217\u7c7b\u578b\u6620\u5c04",id:"\u5217\u7c7b\u578b\u6620\u5c04",level:2},{value:"\u81ea\u5b9a\u4e49\u670d\u52a1\u5730\u5740",id:"\u81ea\u5b9a\u4e49\u670d\u52a1\u5730\u5740",level:2}],u={toc:c},m="wrapper";function s(e){let{components:t,...a}=e;return(0,o.yg)(m,(0,n.A)({},u,a,{components:t,mdxType:"MDXLayout"}),(0,o.yg)("h1",{id:"\u963f\u91cc\u4e91-maxcompute"},"\u963f\u91cc\u4e91 MaxCompute"),(0,o.yg)("p",null,"MaxCompute \u662f\u963f\u91cc\u4e91\u4e0a\u7684\u4f01\u4e1a\u7ea7 SaaS\uff08Software as a Service\uff09\u6a21\u5f0f\u4e91\u6570\u636e\u4ed3\u5e93\u3002"),(0,o.yg)("blockquote",null,(0,o.yg)("p",{parentName:"blockquote"},(0,o.yg)("a",{parentName:"p",href:"https://help.aliyun.com/zh/maxcompute/product-overview/what-is-maxcompute?spm=a2c4g.11174283.0.i1"},"\u4ec0\u4e48\u662f MaxCompute"))),(0,o.yg)("h2",{id:"\u4f7f\u7528\u987b\u77e5"},"\u4f7f\u7528\u987b\u77e5"),(0,o.yg)("ol",null,(0,o.yg)("li",{parentName:"ol"},"Max Compute Catalog \u57fa\u4e8e",(0,o.yg)("a",{parentName:"li",href:"https://help.aliyun.com/zh/maxcompute/user-guide/overview-28?spm=a2c4g.11186623.0.0.376d66c2FNv6aS"},"Max Compute Tunnel SDK"),"\u5f00\u53d1\u3002\u67e5\u8be2\u6027\u80fd\u6709\u4e00\u5b9a\u9650\u5236\u3002"),(0,o.yg)("li",{parentName:"ol"},"\u5728\u4e00\u6b21\u67e5\u8be2\u4e2d\uff0c\u6bcf\u4e2a Scan \u90fd\u4f1a\u521b\u5efa Max Compute \u7684 DownloadSession \u5bf9\u8c61\uff0c\u5e76\u884c\u8bbf\u95ee Max Compute \u65f6\u6027\u80fd\u4f1a\u4e0b\u964d\uff0c\u5efa\u8bae\u4f7f\u7528 Max Compute Catalog \u65f6\uff0c\u5c3d\u91cf\u51cf\u5c11\u67e5\u8be2\u7684\u5206\u533a\u6570\u91cf\u548c\u6570\u636e\u5927\u5c0f\u3002")),(0,o.yg)("h2",{id:"\u8fde\u63a5-max-compute"},"\u8fde\u63a5 Max Compute"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-sql"},'CREATE CATALOG mc PROPERTIES (\n "type" = "max_compute",\n "mc.region" = "cn-beijing",\n "mc.default.project" = "your-project",\n "mc.access_key" = "ak",\n "mc.secret_key" = "sk"\n);\n')),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("inlineCode",{parentName:"li"},"mc.region"),"\uff1aMaxCompute \u5f00\u901a\u7684\u5730\u57df\u3002\u53ef\u4ee5\u4ece Endpoint \u4e2d\u627e\u5230\u5bf9\u5e94\u7684 Region\uff0c\u53c2\u9605",(0,o.yg)("a",{parentName:"li",href:"https://help.aliyun.com/zh/maxcompute/user-guide/endpoints?spm=a2c4g.11186623.0.0"},"Endpoints"),"\u3002"),(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("inlineCode",{parentName:"li"},"mc.default.project"),"\uff1aMaxCompute \u9879\u76ee\u3002\u53ef\u4ee5\u5728",(0,o.yg)("a",{parentName:"li",href:"https://maxcompute.console.aliyun.com/cn-beijing/project-list"},"MaxCompute \u9879\u76ee\u5217\u8868"),"\u4e2d\u521b\u5efa\u548c\u7ba1\u7406\u3002"),(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("inlineCode",{parentName:"li"},"mc.access_key"),"\uff1aAccessKey\u3002\u53ef\u4ee5\u5728 ",(0,o.yg)("a",{parentName:"li",href:"https://ram.console.aliyun.com/manage/ak"},"\u963f\u91cc\u4e91\u63a7\u5236\u53f0")," \u4e2d\u521b\u5efa\u548c\u7ba1\u7406\u3002"),(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("inlineCode",{parentName:"li"},"mc.secret_key"),"\uff1aSecretKey\u3002\u53ef\u4ee5\u5728 ",(0,o.yg)("a",{parentName:"li",href:"https://ram.console.aliyun.com/manage/ak"},"\u963f\u91cc\u4e91\u63a7\u5236\u53f0")," \u4e2d\u521b\u5efa\u548c\u7ba1\u7406\u3002"),(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("inlineCode",{parentName:"li"},"mc.public_access"),": \u5f53\u914d\u7f6e\u4e86",(0,o.yg)("inlineCode",{parentName:"li"},'"mc.public_access"="true"'),"\uff0c\u53ef\u4ee5\u5f00\u542f\u516c\u7f51\u8bbf\u95ee\uff0c\u5efa\u8bae\u6d4b\u8bd5\u65f6\u4f7f\u7528\u3002")),(0,o.yg)("h2",{id:"\u9650\u989d"},"\u9650\u989d"),(0,o.yg)("p",null,"\u8fde\u63a5 MaxCompute \u65f6\uff0c\u6309\u91cf\u4ed8\u8d39\u7684 Quota \u67e5\u8be2\u5e76\u53d1\u548c\u4f7f\u7528\u91cf\u6709\u9650\uff0c\u5982\u9700\u589e\u52a0\u8d44\u6e90\uff0c\u8bf7\u53c2\u7167 MaxCompute \u6587\u6863\u3002\u53c2\u89c1",(0,o.yg)("a",{parentName:"p",href:"https://help.aliyun.com/zh/maxcompute/user-guide/manage-quotas-in-the-new-maxcompute-console"},"\u914d\u989d\u7ba1\u7406"),"."),(0,o.yg)("h2",{id:"\u5217\u7c7b\u578b\u6620\u5c04"},"\u5217\u7c7b\u578b\u6620\u5c04"),(0,o.yg)("p",null,"\u548c Hive Catalog \u4e00\u81f4\uff0c\u53ef\u53c2\u9605 ",(0,o.yg)("a",{parentName:"p",href:"../datalake-analytics/hive"},"Hive Catalog")," \u4e2d ",(0,o.yg)("strong",{parentName:"p"},"\u5217\u7c7b\u578b\u6620\u5c04")," \u4e00\u8282\u3002"),(0,o.yg)("h2",{id:"\u81ea\u5b9a\u4e49\u670d\u52a1\u5730\u5740"},"\u81ea\u5b9a\u4e49\u670d\u52a1\u5730\u5740"),(0,o.yg)("p",null,"\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cMax Compute Catalog \u6839\u636e region \u53bb\u9ed8\u8ba4\u751f\u6210\u516c\u7f51\u7684 endpoint\u3002"),(0,o.yg)("p",null,"\u9664\u4e86\u9ed8\u8ba4\u7684 endpoint \u5730\u5740\u5916\uff0cMax Compute Catalog \u4e5f\u652f\u6301\u5728\u5c5e\u6027\u4e2d\u81ea\u5b9a\u4e49\u670d\u52a1\u5730\u5740\u3002"),(0,o.yg)("p",null,"\u4f7f\u7528\u4ee5\u4e0b\u4e24\u4e2a\u5c5e\u6027\uff1a"),(0,o.yg)("ul",null,(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("inlineCode",{parentName:"li"},"mc.odps_endpoint"),"\uff1aMax Compute Endpoint\u3002"),(0,o.yg)("li",{parentName:"ul"},(0,o.yg)("inlineCode",{parentName:"li"},"mc.tunnel_endpoint"),": Tunnel Endpoint\uff0cMax Compute Catalog \u4f7f\u7528 Tunnel SDK \u83b7\u53d6\u6570\u636e\u3002")),(0,o.yg)("p",null,"Max Compute Endpoint \u548c Tunnel Endpoint \u7684\u914d\u7f6e\u8bf7\u53c2\u89c1",(0,o.yg)("a",{parentName:"p",href:"https://help.aliyun.com/zh/maxcompute/user-guide/endpoints"},"\u5404\u5730\u57df\u53ca\u4e0d\u540c\u7f51\u7edc\u8fde\u63a5\u65b9\u5f0f\u4e0b\u7684 Endpoint")),(0,o.yg)("p",null,"\u793a\u4f8b\uff1a"),(0,o.yg)("pre",null,(0,o.yg)("code",{parentName:"pre",className:"language-sql"},'CREATE CATALOG mc PROPERTIES (\n "type" = "max_compute",\n "mc.region" = "cn-beijing",\n "mc.default.project" = "your-project",\n "mc.access_key" = "ak",\n "mc.secret_key" = "sk"\n "mc.odps_endpoint" = "http://service.cn-beijing.maxcompute.aliyun-inc.com/api",\n "mc.tunnel_endpoint" = "http://dt.cn-beijing.maxcompute.aliyun-inc.com"\n);\n')))}s.isMDXComponent=!0}}]);