mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 07:21:48 +08:00
commit
e2aed2e9e0
@ -33,47 +33,51 @@ ODPSWriter插件用于实现往ODPS插入或者更新数据,主要提供给etl
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"job": {
|
"job": {
|
||||||
"setting": {
|
"setting": {
|
||||||
"speed": {"byte": 1048576}
|
"speed": {
|
||||||
|
"byte": 1048576
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"reader": {
|
||||||
|
"name": "streamreader",
|
||||||
|
"parameter": {
|
||||||
|
"column": [
|
||||||
|
{
|
||||||
|
"value": "DataX",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": "test",
|
||||||
|
"type": "bytes"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"sliceRecordCount": 100000
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"content": [
|
"writer": {
|
||||||
{
|
"name": "odpswriter",
|
||||||
"reader": {
|
"parameter": {
|
||||||
"name": "streamreader",
|
"project": "chinan_test",
|
||||||
"parameter": {
|
"table": "odps_write_test00_partitioned",
|
||||||
"column" : [
|
"partition": "school=SiChuan-School,class=1",
|
||||||
{
|
"column": [
|
||||||
"value": "DataX",
|
"id",
|
||||||
"type": "string"
|
"name"
|
||||||
},
|
],
|
||||||
{
|
"accessId": "xxx",
|
||||||
"value": "test",
|
"accessKey": "xxxx",
|
||||||
"type": "bytes"
|
"truncate": true,
|
||||||
}
|
"odpsServer": "http://sxxx/api",
|
||||||
],
|
"tunnelServer": "http://xxx",
|
||||||
"sliceRecordCount": 100000
|
"accountType": "aliyun"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"writer": {
|
}
|
||||||
"name": "odpswriter",
|
]
|
||||||
"parameter": {
|
}
|
||||||
"project": "chinan_test",
|
|
||||||
"table": "odps_write_test00_partitioned",
|
|
||||||
"partition":"school=SiChuan-School,class=1",
|
|
||||||
"column": ["id","name"],
|
|
||||||
"accessId": "xxx",
|
|
||||||
"accessKey": "xxxx",
|
|
||||||
"truncate": true,
|
|
||||||
"odpsServer": "http://sxxx/api",
|
|
||||||
"tunnelServer": "http://xxx",
|
|
||||||
"accountType": "aliyun"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user