-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-jdbc-source.json
32 lines (25 loc) · 1.08 KB
/
custom-jdbc-source.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
{
"connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector",
"confluent.custom.plugin.id": "ccp-l9kog5",
"confluent.connector.type": "CUSTOM",
"connection.url": "jdbc:postgresql://[host]:[port]/[database]",
"connection.user": "",
"connection.password": "",
"tasks.max": "1",
"mode": "timestamp+incrementing",
"incrementing.column.name": "id",
"timestamp.column.name": "updated_at",
"poll.interval.ms": "5000",
"numeric.mapping": "best_fit",
"table.whitelist": "building",
"topic.prefix": "custom_",
"transforms": "createKey,extractInt",
"transforms.createKey.type": "org.apache.kafka.connect.transforms.ValueToKey",
"transforms.createKey.fields": "id",
"transforms.extractInt.type": "org.apache.kafka.connect.transforms.ExtractField$Key",
"transforms.extractInt.field": "id",
"confluent.custom.schema.registry.auto": "true",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter.enhanced.avro.schema.support": "true"
}