-
Notifications
You must be signed in to change notification settings - Fork 0
/
mysql-sink-ksql.json
33 lines (33 loc) · 1.35 KB
/
mysql-sink-ksql.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"name": "mysql-sink-ksql",
"config": {
"connector.class": "io.confluent.connect.jdbc.JdbcSinkConnector",
"task.max": "1",
"topics": "KSQLSTREAM_PROCESSED",
"key.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter.schema.registry.url": "http://schema-registry:8081",
"value.converter.schema.registry.url": "http://schema-registry:8081",
"transforms": "unwrap",
"transforms.unwrap.type": "io.debezium.transforms.ExtractNewRecordState",
"transforms.unwrap.drop.tombstones": "true",
"key.converter.schemas.enable": "true",
"errors.tolerance": "all",
"errors.log.include.messages": true,
"connection.attempts": "6",
"connection.backoff.ms": "1000",
"connection.url": "jdbc:mysql://35.241.94.127:3306/demo?nullCatalogMeansCurrent=true&autoReconnect=true&useSSL=false",
"connection.user": "root",
"connection.password": "kafka-db-002",
"dialect.name": "MySqlDatabaseDialect",
"insert.mode": "upsert",
"batch.size": "2",
"table.name.format": "movies_title",
"table.whitelist": "demo.movies_title",
"pk.mode": "record_value",
"pk.fields": "MOVIE_ID",
"auto.create": "true",
"auto.evolve": "true",
"db.timezone": "Asia/Bangkok"
}
}