Hi, all.
I’m new in kafka connect. I am trying to use jdbc connector to sinc postgress databases. The problem is that there are composite primary key in that table and there one timestamp column. When I starting connector it work perfectly fine and write all rows into topic. But it isn’t see any updates/deletes/inserts into the table. Now i stand with that configuration:
{
“name”: “source_dev_e9d79303”,
“config”: {
“connector.class”: “io.confluent.connect.jdbc.JdbcSourceConnector”,
“tasks.max”: “1”,
“connection.url”: “jdbc:postgresql://postgres:5432/source_dev”,
“connection.user”: “my_user”,
“connection.password”: “my_pass”,
“mode”: “timestamp”,
“table.whitelist”: “public.source”,
“timestamp.column.name”: “date_input”,
“transforms”: “createKey,formatDate”,
“transforms.createKey.type”: “org.apache.kafka.connect.transforms.ValueToKey”,
“transforms.createKey.fields”: “sort,date_begin”,
“transforms.formatDate.type”: “org.apache.kafka.connect.transforms.TimestampConverter$Value”,
“transforms.formatDate.field”: “date_begin”,
“transforms.formatDate.target.type”: “string”,
“transforms.formatDate.format”: “yyyy-MM-dd”
}
}
I would be very grateful for any help