From cb47451c1cbb4f042ff47f83f4c30ccb0426cf58 Mon Sep 17 00:00:00 2001 From: wgzhao Date: Fri, 11 Oct 2024 11:22:13 +0800 Subject: [PATCH] [update][docs] Update json layout for new version requirements --- docs/assets/jobs/accessreader.json | 3 +- docs/assets/jobs/accesswriter.json | 117 ++++++++++++------------- docs/assets/jobs/clickhousewriter.json | 30 +++---- docs/assets/jobs/databendwriter.json | 21 +++-- docs/assets/jobs/doriswriter.json | 21 +++-- docs/assets/jobs/gpwriter.json | 30 +++---- docs/assets/jobs/pgwriter.json | 4 +- 7 files changed, 105 insertions(+), 121 deletions(-) diff --git a/docs/assets/jobs/accessreader.json b/docs/assets/jobs/accessreader.json index d640e52e3..2303b1243 100644 --- a/docs/assets/jobs/accessreader.json +++ b/docs/assets/jobs/accessreader.json @@ -6,7 +6,7 @@ "channel": 1 } }, - "content": [ + "content": { "reader": { "name": "accessreader", @@ -33,6 +33,5 @@ } } } - ] } } diff --git a/docs/assets/jobs/accesswriter.json b/docs/assets/jobs/accesswriter.json index a2946f67b..87f865312 100644 --- a/docs/assets/jobs/accesswriter.json +++ b/docs/assets/jobs/accesswriter.json @@ -1,66 +1,61 @@ { - "job": { - "setting": { - "speed": { - "channel": 1, - "bytes": -1 - } - }, - "content": [ + "job": { + "setting": { + "speed": { + "channel": 1, + "bytes": -1 + } + }, + "content": { + "reader": { + "name": "streamreader", + "parameter": { + "column": [ + { + "value": "Addax", + "type": "string" + }, + { + "value": 19880808, + "type": "long" + }, + { + "value": "1988-08-08 08:08:08", + "type": "date" + }, + { + "value": true, + "type": "bool" + }, { - "reader": { - "name": "streamreader", - "parameter": { - "column" : [ - { - "value": "Addax", - "type": "string" - }, - { - "value": 19880808, - "type": "long" - }, - { - "value": "1988-08-08 08:08:08", - "type": "date" - }, - { - "value": true, - "type": "bool" - }, - { - "value": "test", - "type": "bytes" - } - ], - "sliceRecordCount": 1000 - } - }, - "writer": { - "name": "accesswriter", - "parameter": { - "username": "wgzhao", - "password": "", - "column": [ - "name", - "file_size", - "file_date", - "file_open", - "memo" - ], - "ddl":"create table tbl_test(name varchar(20), file_size int, file_date date, file_open boolean, memo blob);", - "connection": [ - { - "jdbcUrl": "jdbc:ucanaccess:////Users/wgzhao/Downloads/AccessThemeDemo.mdb", - "table": [ - "tbl_test" - ] - } - ] - } - } + "value": "test", + "type": "bytes" } - ] + ], + "sliceRecordCount": 1000 + } + }, + "writer": { + "name": "accesswriter", + "parameter": { + "username": "wgzhao", + "password": "", + "column": [ + "name", + "file_size", + "file_date", + "file_open", + "memo" + ], + "ddl": "create table tbl_test(name varchar(20), file_size int, file_date date, file_open boolean, memo blob);", + "connection": { + "jdbcUrl": "jdbc:ucanaccess:////Users/wgzhao/Downloads/AccessThemeDemo.mdb", + "table": [ + "tbl_test" + ] + } + } + } } + } } - diff --git a/docs/assets/jobs/clickhousewriter.json b/docs/assets/jobs/clickhousewriter.json index a7fb4f113..1e4c52efd 100644 --- a/docs/assets/jobs/clickhousewriter.json +++ b/docs/assets/jobs/clickhousewriter.json @@ -13,14 +13,12 @@ "column": [ "*" ], - "connection": [ - { - "table": [ - "ck_addax_writer" - ], - "jdbcUrl": "jdbc:clickhouse://127.0.0.1:8123/default" - } - ], + "connection": { + "table": [ + "ck_addax_writer" + ], + "jdbcUrl": "jdbc:clickhouse://127.0.0.1:8123/default" + }, "preSql": [ "alter table @table delete where 1=1" ] @@ -33,16 +31,12 @@ "column": [ "*" ], - "connection": [ - { - "jdbcUrl": [ - "jdbc:clickhouse://127.0.0.1:8123/" - ], - "table": [ - "ck_addax" - ] - } - ] + "connection": { + "jdbcUrl": "jdbc:clickhouse://127.0.0.1:8123/", + "table": [ + "ck_addax" + ] + } } } } diff --git a/docs/assets/jobs/databendwriter.json b/docs/assets/jobs/databendwriter.json index eb3c6e48a..78f07fbe6 100644 --- a/docs/assets/jobs/databendwriter.json +++ b/docs/assets/jobs/databendwriter.json @@ -12,19 +12,18 @@ "preSql": [ "truncate table @table" ], - "postSql": [ - ], - "connection": [ - { - "jdbcUrl": "jdbc:databend://localhost:8000/addax", - "table": [ - "table1" - ] - } - ], + "postSql": [], + "connection": { + "jdbcUrl": "jdbc:databend://localhost:8000/addax", + "table": [ + "table1" + ] + }, "username": "u1", "password": "123", - "column": ["*"] + "column": [ + "*" + ] } }, "reader": { diff --git a/docs/assets/jobs/doriswriter.json b/docs/assets/jobs/doriswriter.json index c02b32315..d8b937be4 100644 --- a/docs/assets/jobs/doriswriter.json +++ b/docs/assets/jobs/doriswriter.json @@ -9,18 +9,23 @@ "writer": { "name": "doriswriter", "parameter": { - "loadUrl": ["127.0.0.1:8030"], + "loadUrl": [ + "127.0.0.1:8030" + ], "username": "test", "password": "123456", "batchSize": 1024, - "column": ["siteid", "citycode", "username", "pv"], - "connection": [ - { - "table": "table1", - "database": "example_db", - "jdbcUrl": "jdbc:mysql://localhost:9030/example_db" - } + "column": [ + "siteid", + "citycode", + "username", + "pv" ], + "connection": { + "table": "table1", + "database": "example_db", + "jdbcUrl": "jdbc:mysql://localhost:9030/example_db" + }, "loadProps": { "format": "json", "strip_outer_array": true diff --git a/docs/assets/jobs/gpwriter.json b/docs/assets/jobs/gpwriter.json index 992600135..f6e74ed62 100644 --- a/docs/assets/jobs/gpwriter.json +++ b/docs/assets/jobs/gpwriter.json @@ -15,16 +15,12 @@ "column": [ "*" ], - "connection": [ - { - "table": [ - "addax_tbl" - ], - "jdbcUrl": [ - "jdbc:postgresql://localhost:5432/wgzhao" - ] - } - ] + "connection": { + "table": [ + "addax_tbl" + ], + "jdbcUrl": "jdbc:postgresql://localhost:5432/wgzhao" + } } }, "writer": { @@ -38,14 +34,12 @@ "preSql": [ "truncate table @table" ], - "connection": [ - { - "jdbcUrl": "jdbc:postgresql://localhost:5432/wgzhao", - "table": [ - "gp_test" - ] - } - ] + "connection": { + "jdbcUrl": "jdbc:postgresql://localhost:5432/wgzhao", + "table": [ + "gp_test" + ] + } } } } diff --git a/docs/assets/jobs/pgwriter.json b/docs/assets/jobs/pgwriter.json index d684834f1..69677fa9d 100644 --- a/docs/assets/jobs/pgwriter.json +++ b/docs/assets/jobs/pgwriter.json @@ -19,9 +19,7 @@ "table": [ "addax_tbl" ], - "jdbcUrl": [ - "jdbc:postgresql://localhost:5432/pgtest" - ] + "jdbcUrl": "jdbc:postgresql://localhost:5432/pgtest" } } },