1. Setup the OceanBase cluster following the [deployment doc](https://open.oceanbase.com/docs/community/oceanbase-database/V3.1.1/deploy-the-distributed-oceanbase-cluster).
1. Set up the OceanBase cluster following the [doc](https://github.com/oceanbase/oceanbase#quick-start).
2. Create a user with password in `sys` tenant, this user is used in OceanBase LogProxy. See [user management doc](https://open.oceanbase.com/docs/community/oceanbase-database/V3.1.1/create-user-3).
2. Create a user with password in `sys` tenant, this user is used in OceanBase LogProxy.
```shell
```shell
mysql -h${host} -P${port} -uroot
mysql -h${host} -P${port} -uroot
@ -53,7 +53,7 @@ Setup OceanBase and LogProxy Server
mysql> show parameters like 'obconfig_url';
mysql> show parameters like 'obconfig_url';
```
```
5. Setup OceanBase LogProxy. For users of OceanBase Community Edition, you can follow the [quick start](https://github.com/oceanbase/oblogproxy#quick-start).
5. Setup OceanBase LogProxy. For users of OceanBase Community Edition, you can follow the [quick start](https://github.com/oceanbase/oblogproxy#getting-started).
How to create a OceanBase CDC table
How to create a OceanBase CDC table
----------------
----------------
@ -79,8 +79,8 @@ Flink SQL> CREATE TABLE orders (
'username' = 'user@test_tenant',
'username' = 'user@test_tenant',
'password' = 'pswd',
'password' = 'pswd',
'tenant-name' = 'test_tenant',
'tenant-name' = 'test_tenant',
'database-name' = 'test_db',
'database-name' = '^test_db$',
'table-name' = 'orders',
'table-name' = '^orders$',
'hostname' = '127.0.0.1',
'hostname' = '127.0.0.1',
'port' = '2881',
'port' = '2881',
'rootserver-list' = '127.0.0.1:2882:2881',
'rootserver-list' = '127.0.0.1:2882:2881',
@ -314,8 +314,8 @@ CREATE TABLE products (
'username' = 'user@test_tenant',
'username' = 'user@test_tenant',
'password' = 'pswd',
'password' = 'pswd',
'tenant-name' = 'test_tenant',
'tenant-name' = 'test_tenant',
'database-name' = 'test_db',
'database-name' = '^test_db$',
'table-name' = 'orders',
'table-name' = '^orders$',
'hostname' = '127.0.0.1',
'hostname' = '127.0.0.1',
'port' = '2881',
'port' = '2881',
'rootserver-list' = '127.0.0.1:2882:2881',
'rootserver-list' = '127.0.0.1:2882:2881',
@ -400,13 +400,13 @@ public class OceanBaseSourceExample {
.username("user@test_tenant")
.username("user@test_tenant")
.password("pswd")
.password("pswd")
.tenantName("test_tenant")
.tenantName("test_tenant")
.databaseName("test_db")
.databaseName("^test_db$")
.tableName("test_table")
.tableName("^test_table$")
.hostname("127.0.0.1")
.hostname("127.0.0.1")
.port(2881)
.port(2881)
.logProxyHost("127.0.0.1")
.logProxyHost("127.0.0.1")
.logProxyPort(2983)
.logProxyPort(2983)
.serverTimeZone(serverTimezone)
.serverTimeZone(serverTimeZone)
.deserializer(deserializer)
.deserializer(deserializer)
.build();
.build();
@ -423,6 +423,8 @@ public class OceanBaseSourceExample {