Skip to content

Commit

Permalink
[doc][doc] 增加kingbase使用文档
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyanquan committed Jan 13, 2021
1 parent bc458f8 commit 9cfa7ed
Show file tree
Hide file tree
Showing 6 changed files with 869 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ The following databases are currently supported:
| | Phoenix | [doc](docs/offline/reader/phoenixreader.md) | [doc](docs/offline/writer/phoenixwriter.md) |
| | 达梦 | [doc](docs/offline/reader/dmreader.md) | [doc](docs/offline/writer/dmwriter.md) |
| | Greenplum | [doc](docs/offline/reader/greenplumreader.md) | [doc](docs/offline/writer/greenplumwriter.md) |
| | KingBase | [doc](docs/offline/reader/kingbasereader.md) | [doc](docs/offline/writer/kingbasewriter.md) |
| | Cassandra | [doc](docs/offline/reader/cassandrareader.md) | [doc](docs/offline/writer/cassandrawriter.md) |
| | ODPS | [doc](docs/offline/reader/odpsreader.md) | [doc](docs/offline/writer/odpswriter.md) |
| | HBase | [doc](docs/offline/reader/hbasereader.md) | [doc](docs/offline/writer/hbasewriter.md) |
Expand Down
1 change: 1 addition & 0 deletions README_CH.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ FlinkX目前支持下面这些数据库:
| | Phoenix | [doc](docs/offline/reader/phoenixreader.md) | [doc](docs/offline/writer/phoenixwriter.md) |
| | 达梦 | [doc](docs/offline/reader/dmreader.md) | [doc](docs/offline/writer/dmwriter.md) |
| | Greenplum | [doc](docs/offline/reader/greenplumreader.md) | [doc](docs/offline/writer/greenplumwriter.md) |
| | KingBase | [doc](docs/offline/reader/kingbasereader.md) | [doc](docs/offline/writer/kingbasewriter.md) |
| | Cassandra | [doc](docs/offline/reader/cassandrareader.md) | [doc](docs/offline/writer/cassandrawriter.md) |
| | ODPS | [doc](docs/offline/reader/odpsreader.md) | [doc](docs/offline/writer/odpswriter.md) |
| | HBase | [doc](docs/offline/reader/hbasereader.md) | [doc](docs/offline/writer/hbasewriter.md) |
Expand Down
53 changes: 53 additions & 0 deletions docs/example/kingbase_stream.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"job": {
"content": [
{
"reader": {
"parameter": {
"username": "dtstack",
"password": "abc123",
"connection": [{
"jdbcUrl": ["jdbc:kingbase8://localhost:54321/test"],
"table": ["kudu"],
"schema":"test"
}],
"column": ["*"],
"customSql": "",
"where": "id < 100",
"splitPk": "",
"queryTimeOut": 1000,
"requestAccumulatorInterval": 2
},
"name": "kingbasereader"
},
"writer": {
"name": "streamwriter",
"parameter": {
"print": true
}
}
}
],
"setting": {
"speed": {
"channel": 1,
"bytes": 0
},
"errorLimit": {
"record": 100
},
"restore": {
"maxRowNumForCheckpoint": 0,
"isRestore": false,
"restoreColumnName": "",
"restoreColumnIndex": 0
},
"log" : {
"isLogger": false,
"level" : "debug",
"path" : "",
"pattern":""
}
}
}
}
66 changes: 66 additions & 0 deletions docs/example/stream_kingbase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"job": {
"content": [{
"reader": {
"parameter": {
"sliceRecordCount": ["100"],
"column": [
{
"name": "id",
"type": "int"
},
{
"name": "user_id",
"type": "int"
},
{
"name":"name",
"type":"string"
}
]
},
"name": "streamreader"
},
"writer": {
"name": "kingbasewriter",
"parameter": {
"connection": [{
"jdbcUrl": "jdbc:kingbase8://localhost:54321/test",
"table": [
"tableTest"
],
"schema":"test"
}],
"username": "username",
"password": "password",
"column": [
{
"name": "id",
"type": "BIGINT"
},
{
"name": "user_id",
"type": "BIGINT"
},
{
"name": "name",
"type": "varchar"
}],
"writeMode": "insert",
"batchSize": 1024,
"preSql": [],
"postSql": []
}
}
}],
"setting": {
"speed": {
"channel": 1,
"bytes": 0
},
"errorLimit": {
"record": 100
}
}
}
}
Loading

0 comments on commit 9cfa7ed

Please sign in to comment.