Skip to content

Commit 25dfbb2

Browse files
authored
[Doc][Improve] support chinese [docs/zh/connector-v2/source/Maxcompute.md] (#8708)
1 parent 14012ea commit 25dfbb2

File tree

1 file changed

+119
-0
lines changed

1 file changed

+119
-0
lines changed

Diff for: docs/zh/connector-v2/source/Maxcompute.md

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
# Maxcompute
2+
3+
> Maxcompute 源连接器
4+
5+
## 描述
6+
7+
用于从 Maxcompute 读取数据.
8+
9+
## 关键特性
10+
11+
- [x] [批处理](../../concept/connector-v2-features.md)
12+
- [ ] [精确一次](../../concept/connector-v2-features.md)
13+
- [ ] [列投影](../../concept/connector-v2-features.md)
14+
- [x] [并行度](../../concept/connector-v2-features.md)
15+
- [ ] [支持用户自定义分片](../../concept/connector-v2-features.md)
16+
17+
## 选项
18+
19+
| 名称 | 类型 | 必需 | 默认值 |
20+
|----------------|--------|----|---------------|
21+
| accessId | string || - |
22+
| accesskey | string || - |
23+
| endpoint | string || - |
24+
| project | string || - |
25+
| table_name | string || - |
26+
| partition_spec | string || - |
27+
| split_row | int || 10000 |
28+
| read_columns | Array || - |
29+
| table_list | Array || - |
30+
| common-options | string || |
31+
| schema | config || |
32+
33+
### accessId [string]
34+
35+
`accessId` 您的 Maxcompute 密钥 Id, 可以从阿里云访问哪个云.
36+
37+
### accesskey [string]
38+
39+
`accesskey` Your Maxcompute 密钥, 可以从阿里云访问哪个云.
40+
41+
### endpoint [string]
42+
43+
`endpoint` 您的 Maxcompute 端点以 http 开头.
44+
45+
### project [string]
46+
47+
`project` 您在阿里云中创建的Maxcompute项目.
48+
49+
### table_name [string]
50+
51+
`table_name` 目标Maxcompute表名,例如:fake.
52+
53+
### partition_spec [string]
54+
55+
`partition_spec` Maxcompute分区表的此规范,例如:ds='20220101'.
56+
57+
### split_row [int]
58+
59+
`split_row` 每次拆分的行数,默认值: 10000.
60+
61+
### read_columns [Array]
62+
63+
`read_columns` 要读取的列,如果未设置,则将读取所有列。例如. ["col1", "col2"]
64+
65+
### table_list [Array]
66+
67+
要读取的表列表,您可以使用此配置代替 `table_name`.
68+
69+
### common options
70+
71+
源插件常用参数, 详见 [源通用选项](../source-common-options.md) .
72+
73+
## 示例
74+
75+
### 表读取
76+
77+
```hocon
78+
source {
79+
Maxcompute {
80+
accessId="<your access id>"
81+
accesskey="<your access Key>"
82+
endpoint="<http://service.odps.aliyun.com/api>"
83+
project="<your project>"
84+
table_name="<your table name>"
85+
#partition_spec="<your partition spec>"
86+
#split_row = 10000
87+
#read_columns = ["col1", "col2"]
88+
}
89+
}
90+
```
91+
92+
### 使用表列表读取
93+
94+
```hocon
95+
source {
96+
Maxcompute {
97+
accessId="<your access id>"
98+
accesskey="<your access Key>"
99+
endpoint="<http://service.odps.aliyun.com/api>"
100+
project="<your project>" # default project
101+
table_list = [
102+
{
103+
table_name = "test_table"
104+
#partition_spec="<your partition spec>"
105+
#split_row = 10000
106+
#read_columns = ["col1", "col2"]
107+
},
108+
{
109+
project = "test_project"
110+
table_name = "test_table2"
111+
#partition_spec="<your partition spec>"
112+
#split_row = 10000
113+
#read_columns = ["col1", "col2"]
114+
}
115+
]
116+
}
117+
}
118+
```
119+

0 commit comments

Comments
 (0)