Skip to content

Instantly share code, notes, and snippets.

@byalpir
Created April 16, 2020 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byalpir/5631298366d1540b03212bfa1fc9574c to your computer and use it in GitHub Desktop.
Save byalpir/5631298366d1540b03212bfa1fc9574c to your computer and use it in GitHub Desktop.
{
"name": "jdbc-sink",
"config": {
"connector.class": "io.confluent.connect.jdbc.JdbcSinkConnector",
"tasks.max": "1",
"topics": "inventory.customers",
"connection.url": "jdbc:postgresql://postgres:5432/inventory?user=postgresuser&password=postgrespw",
"transforms": "unwrap,route",
"transforms.unwrap.type": "io.debezium.transforms.ExtractNewRecordState",
"transforms.unwrap.drop.tombstones":"false",
"transforms.route.type": "org.apache.kafka.connect.transforms.RegexRouter",
"transforms.route.regex": "([^.]+)\\.([^.]+)",
"transforms.route.replacement": "$2",
"auto.create": "true",
"insert.mode": "upsert",
"delete.enabled": "true",
"pk.fields": "id",
"table.whitelist":"customers",
"pk.mode": "record_key"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment