Skip to content

Commit

Permalink
Fix yaml/json configuration examples in io-cdc-debezium (apache#13150)
Browse files Browse the repository at this point in the history
  • Loading branch information
murong00 authored Dec 7, 2021
1 parent 5ec8b86 commit 69e7e6c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
46 changes: 25 additions & 21 deletions site2/docs/io-cdc-debezium.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,16 @@ You can use one of the following methods to create a configuration file.

```json
{
"database.hostname": "localhost",
"database.port": "5432",
"database.user": "postgres",
"database.password": "postgres",
"database.dbname": "postgres",
"database.server.name": "dbserver1",
"schema.whitelist": "inventory",
"pulsar.service.url": "pulsar://127.0.0.1:6650"
"configs": {
"database.hostname": "localhost",
"database.port": "5432",
"database.user": "postgres",
"database.password": "postgres",
"database.dbname": "postgres",
"database.server.name": "dbserver1",
"schema.whitelist": "inventory",
"pulsar.service.url": "pulsar://127.0.0.1:6650"
}
}
```

Expand Down Expand Up @@ -322,13 +324,15 @@ You need to create a configuration file before using the Pulsar Debezium connect

```json
{
"mongodb.hosts": "rs0/mongodb:27017",
"mongodb.name": "dbserver1",
"mongodb.user": "debezium",
"mongodb.password": "dbz",
"mongodb.task.id": "1",
"database.whitelist": "inventory",
"pulsar.service.url": "pulsar://127.0.0.1:6650"
"configs": {
"mongodb.hosts": "rs0/mongodb:27017",
"mongodb.name": "dbserver1",
"mongodb.user": "debezium",
"mongodb.password": "dbz",
"mongodb.task.id": "1",
"database.whitelist": "inventory",
"pulsar.service.url": "pulsar://127.0.0.1:6650"
}
}
```

Expand All @@ -347,12 +351,12 @@ You need to create a configuration file before using the Pulsar Debezium connect
configs:

## config for pg, docker image: debezium/example-postgress:0.10
mongodb.hosts: "rs0/mongodb:27017",
mongodb.name: "dbserver1",
mongodb.user: "debezium",
mongodb.password: "dbz",
mongodb.task.id: "1",
database.whitelist: "inventory",
mongodb.hosts: "rs0/mongodb:27017"
mongodb.name: "dbserver1"
mongodb.user: "debezium"
mongodb.password: "dbz"
mongodb.task.id: "1"
database.whitelist: "inventory"

## PULSAR_SERVICE_URL_CONFIG
pulsar.service.url: "pulsar://127.0.0.1:6650"
Expand Down
2 changes: 1 addition & 1 deletion site2/docs/io-jdbc-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The configuration of all JDBC sink connectors has the following properties.

```json
{
"configs" {
"configs": {
"userName": "clickhouse",
"password": "password",
"jdbcUrl": "jdbc:clickhouse://localhost:8123/pulsar_clickhouse_jdbc_sink",
Expand Down

0 comments on commit 69e7e6c

Please sign in to comment.