Skip to content

Commit 554212c

Browse files
whheChaomingZhangCN
authored andcommitted
[docs][cdc-connector][oceanbase] update docker image and os compatibility in quickstart (apache#2897)
* [docs][cdc-connector] update docker image and description in oceanbase quickstart * revert removal by accident
1 parent 033e329 commit 554212c

2 files changed

Lines changed: 14 additions & 32 deletions

File tree

docs/content/quickstart/oceanbase-tutorial.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@
1111

1212
Create `docker-compose.yml`.
1313

14+
*Note*: `host` network mode is required in this demo, so it can only work on Linux, see [network-tutorial-host](https://docs.docker.com/network/network-tutorial-host/).
15+
1416
```yaml
1517
version: '2.1'
1618
services:
1719
observer:
18-
image: oceanbase/oceanbase-ce:4.0.0.0
20+
image: oceanbase/oceanbase-ce:4.2.0.0
1921
container_name: observer
22+
environment:
23+
- 'MODE=slim'
24+
- 'OB_ROOT_PASSWORD=pswd'
2025
network_mode: "host"
2126
oblogproxy:
22-
image: whhe/oblogproxy:1.1.0_4x
27+
image: whhe/oblogproxy:1.1.3_4x
2328
container_name: oblogproxy
2429
environment:
2530
- 'OB_SYS_USERNAME=root'
@@ -60,20 +65,6 @@ docker-compose up -d
6065

6166
### Set password
6267

63-
There is no password for 'root' user by default, but we need a user of 'sys' tenant with non-empty password in oblogproxy. So here we should set a password for 'root@sys' firstly.
64-
65-
Login 'root' user of 'sys' tenant.
66-
67-
```shell
68-
docker-compose exec observer obclient -h127.0.0.1 -P2881 -uroot@sys
69-
```
70-
71-
Set a password, note that the password needs to be consistent with the environment variable 'OB_SYS_PASSWORD' of oblogproxy service.
72-
73-
```mysql
74-
ALTER USER root IDENTIFIED BY 'pswd';
75-
```
76-
7768
From OceanBase 4.0.0.0 CE, we can only fetch the commit log of non-sys tenant.
7869

7970
Here we use the 'test' tenant for example.

docs/content/快速上手/oceanbase-tutorial-zh.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,20 @@
1212

1313
配置 `docker-compose.yml`
1414

15+
*注意*:本示例需要使用`host`网络,所以只能在 Linux 系统上运行,更多信息见 [network-tutorial-host](https://docs.docker.com/network/network-tutorial-host/)
16+
1517
```yaml
1618
version: '2.1'
1719
services:
1820
observer:
19-
image: oceanbase/oceanbase-ce:4.0.0.0
21+
image: oceanbase/oceanbase-ce:4.2.0.0
2022
container_name: observer
23+
environment:
24+
- 'MODE=slim'
25+
- 'OB_ROOT_PASSWORD=pswd'
2126
network_mode: "host"
2227
oblogproxy:
23-
image: whhe/oblogproxy:1.1.0_4x
28+
image: whhe/oblogproxy:1.1.3_4x
2429
container_name: oblogproxy
2530
environment:
2631
- 'OB_SYS_USERNAME=root'
@@ -61,20 +66,6 @@ docker-compose up -d
6166

6267
### 设置密码
6368

64-
OceanBase 中 root 用户默认是没有密码的,但是 oblogproxy 需要配置一个使用非空密码的系统租户用户,因此这里我们需要先为 root@sys 用户设置一个密码。
65-
66-
登陆 sys 租户的 root 用户:
67-
68-
```shell
69-
docker-compose exec observer obclient -h127.0.0.1 -P2881 -uroot@sys
70-
```
71-
72-
设置密码,注意这里的密码需要与上一步中 oblogproxy 服务的环境变量 'OB_SYS_PASSWORD' 保持一样。
73-
74-
```mysql
75-
ALTER USER root IDENTIFIED BY 'pswd';
76-
```
77-
7869
OceanBase 从社区版 4.0.0.0 开始只支持对非 sys 租户的增量数据拉取,这里我们使用 test 租户的 root 用户作为示例。
7970

8071
登陆 test 租户的 root 用户:

0 commit comments

Comments
 (0)