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
{
"job": {
"setting": {
"speed": {"byte": 1048576}
"job": {
"setting": {
"speed": {
"byte": 1048576
}
},
"content": [
{
"reader": {
"name": "streamreader",
"parameter": {
"column": [
{
"value": "DataX",
"type": "string"
},
{
"value": "test",
"type": "bytes"
}
],
"sliceRecordCount": 100000
}
},
"content": [
{
"reader": {
"name": "streamreader",
"parameter": {
"column" : [
{
"value": "DataX",
"type": "string"
},
{
"value": "test",
"type": "bytes"
}
],
"sliceRecordCount": 100000
}
},
"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"
}
}
}
}
]
}
"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"
}
}
}
]
}
}
```