Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add data stream test case and update java demo #47

Merged
merged 7 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(docs): use the same configs in demo
  • Loading branch information
whhe committed Jan 2, 2024
commit b7f3383751f9e7f9aaa4c86001efec6af2947bfc
6 changes: 3 additions & 3 deletions docs/sink/flink-connector-oceanbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ public class Main {
+ ") with ("
+ " 'connector' = 'oceanbase',"
+ " 'url' = 'jdbc:oceanbase:https://127.0.0.1:2881/test',"
+ " 'schema-name'= 'test',"
+ " 'table-name' = 't_sink',"
+ " 'username' = 'root@test',"
+ " 'username' = 'root@test#obcluster',"
+ " 'password' = 'pswd',"
+ " 'compatible-mode' = 'mysql',"
+ " 'connection-pool-properties' = 'druid.initialSize=10;druid.maxActive=100',"
Expand All @@ -115,6 +116,7 @@ public class Main {
.await();
}
}

```

Once executed, the records should have been written to OceanBase.
Expand All @@ -133,8 +135,6 @@ CREATE TABLE t_sink
) with (
'connector' = 'oceanbase',
'url' = 'jdbc:oceanbase:https://127.0.0.1:2881/test',
'cluster-name' = 'obcluster',
'tenant-name' = 'test',
'schema-name' = 'test',
'table-name' = 't_sink',
'username' = 'root@test#obcluster',
Expand Down
6 changes: 3 additions & 3 deletions docs/sink/flink-connector-oceanbase_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ public class Main {
+ ") with ("
+ " 'connector' = 'oceanbase',"
+ " 'url' = 'jdbc:oceanbase:https://127.0.0.1:2881/test',"
+ " 'schema-name'= 'test',"
+ " 'table-name' = 't_sink',"
+ " 'username' = 'root@test',"
+ " 'username' = 'root@test#obcluster',"
+ " 'password' = 'pswd',"
+ " 'compatible-mode' = 'mysql',"
+ " 'connection-pool-properties' = 'druid.initialSize=10;druid.maxActive=100',"
Expand All @@ -116,6 +117,7 @@ public class Main {
.await();
}
}

```

执行完成后,即可在 OceanBase 中检索验证。
Expand All @@ -135,8 +137,6 @@ CREATE TABLE t_sink
with (
'connector' = 'oceanbase',
'url' = 'jdbc:oceanbase:https://127.0.0.1:2881/test',
'cluster-name' = 'obcluster',
'tenant-name' = 'test',
'schema-name' = 'test',
'table-name' = 't_sink',
'username' = 'root@test#obcluster',
Expand Down