Merge pull request #694 from dataccs/patch-2

Update odpswriter.md
This commit is contained in:
Trafalgar 2020-05-26 05:17:24 +08:00 committed by GitHub
commit e2aed2e9e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
}
}
}
}
]
}
} }
``` ```