From f75321f4a4370437178b1be7ed4c6aecc0a2c5b6 Mon Sep 17 00:00:00 2001 From: dataccs Date: Tue, 26 May 2020 01:51:08 +0800 Subject: [PATCH] Update odpswriter.md --- odpswriter/doc/odpswriter.md | 84 +++++++++++++++++++----------------- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/odpswriter/doc/odpswriter.md b/odpswriter/doc/odpswriter.md index 053a77c2..d81672b0 100644 --- a/odpswriter/doc/odpswriter.md +++ b/odpswriter/doc/odpswriter.md @@ -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" + } + } + } + ] + } } ```