Skip to content

Commit

Permalink
[update][docs] Update json layout for new version requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Oct 11, 2024
1 parent 0ae2421 commit cb47451
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 121 deletions.
3 changes: 1 addition & 2 deletions docs/assets/jobs/accessreader.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"channel": 1
}
},
"content": [
"content":
{
"reader": {
"name": "accessreader",
Expand All @@ -33,6 +33,5 @@
}
}
}
]
}
}
117 changes: 56 additions & 61 deletions docs/assets/jobs/accesswriter.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
}
}
}

30 changes: 12 additions & 18 deletions docs/assets/jobs/clickhousewriter.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand All @@ -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"
]
}
}
}
}
Expand Down
21 changes: 10 additions & 11 deletions docs/assets/jobs/databendwriter.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
21 changes: 13 additions & 8 deletions docs/assets/jobs/doriswriter.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 12 additions & 18 deletions docs/assets/jobs/gpwriter.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
]
}
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions docs/assets/jobs/pgwriter.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
"table": [
"addax_tbl"
],
"jdbcUrl": [
"jdbc:postgresql://localhost:5432/pgtest"
]
"jdbcUrl": "jdbc:postgresql://localhost:5432/pgtest"
}
}
},
Expand Down

0 comments on commit cb47451

Please sign in to comment.