This instruction provides an example of how to set up a JDBC Sink Connector. It should NOT be used to set up a production Kafka Connect cluster or a JDBC Sink connector. Instead, you should carefully read Kafka Connect's documentation, understand how to deploy, configure and run it, or hire professionals to do it. You should do the same for JDBC Sink Connector.
- Kafka Cluster Addresses
i-4-manufacturing-jdbc-57dccb76-15da-42-yslwepq4xl.servicebus.windows.net:9093
i-4-manufacturing-jdbc-57dccb76-15da-42-bnuqwl9oar.servicebus.windows.net:9093
i-4-manufacturing-jdbc-57dccb76-15da-42-xptt8boyb8.servicebus.windows.net:9093
- SAS Credentials
{
cluster: 'jdbc-57dccb76-15da-42d3-868a-f68c2de95252-0',
key: 'key',
primaryKey: 'aaZUB/l16iC+DnfsJR7v8D3MLK54LFhsKYdqcw3E038=',
secondaryKey: 'A9xWUUVaPL589Yjd2uklS042du479Y/r5o/XlM62Xwc=',
connectionStringPrimaryKey: 'Endpoint=sb://i-4-manufacturing-jdbc-57dccb76-15da-42-yslwepq4xl.servicebus.windows.net/;SharedAccessKeyName=key;SharedAccessKey=aaZUB/l16iC+DnfsJR7v8D3MLK54LFhsKYdqcw3E038=',
connectionStringSecondaryKey: 'Endpoint=sb://i-4-manufacturing-jdbc-57dccb76-15da-42-yslwepq4xl.servicebus.windows.net/;SharedAccessKeyName=key;SharedAccessKey=A9xWUUVaPL589Yjd2uklS042du479Y/r5o/XlM62Xwc='
},
{
cluster: 'jdbc-57dccb76-15da-42d3-868a-f68c2de95252-1',
key: 'key',
primaryKey: 'X70K5D2ZlcVkoP6xF62CNm0t+NCtzgtiva5erx73/5g=',
secondaryKey: '7csWZ4ICSfIYCtZ100F7n+jIuzzrpPpVPagsm2wa0BQ=',
connectionStringPrimaryKey: 'Endpoint=sb://i-4-manufacturing-jdbc-57dccb76-15da-42-bnuqwl9oar.servicebus.windows.net/;SharedAccessKeyName=key;SharedAccessKey=X70K5D2ZlcVkoP6xF62CNm0t+NCtzgtiva5erx73/5g=',
connectionStringSecondaryKey: 'Endpoint=sb://i-4-manufacturing-jdbc-57dccb76-15da-42-bnuqwl9oar.servicebus.windows.net/;SharedAccessKeyName=key;SharedAccessKey=7csWZ4ICSfIYCtZ100F7n+jIuzzrpPpVPagsm2wa0BQ='
},
{
cluster: 'jdbc-57dccb76-15da-42d3-868a-f68c2de95252-2',
key: 'key',
primaryKey: 'LpO+izwM9Ki9ebIl1F4GE7EEGe3I/6ZVAaGK/f63kMM=',
secondaryKey: 'K347XbEpgl4lkKhB9MKAgtbr1/uJDoG9tsiYLy+rmPI=',
connectionStringPrimaryKey: 'Endpoint=sb://i-4-manufacturing-jdbc-57dccb76-15da-42-xptt8boyb8.servicebus.windows.net/;SharedAccessKeyName=key;SharedAccessKey=LpO+izwM9Ki9ebIl1F4GE7EEGe3I/6ZVAaGK/f63kMM=',
connectionStringSecondaryKey: 'Endpoint=sb://i-4-manufacturing-jdbc-57dccb76-15da-42-xptt8boyb8.servicebus.windows.net/;SharedAccessKeyName=key;SharedAccessKey=K347XbEpgl4lkKhB9MKAgtbr1/uJDoG9tsiYLy+rmPI='
}
- Schema Registry Credentials
{
name: 'credentials',
teamId: '57dccb76-15da-42d3-868a-f68c2de95252',
username: 'm1Ys%!%!WygwUhKanq&R5UgNd5hsQNjOo9iQsMajV@^ZTHWvcuUBM73s6^',
password: 'bT463XL@m%'
}
- Fill in schema registry credentials in
.env
file underSR_CREDS
environment variable in formatusername:password
- If your team is in EU region, change
SR_URL
to https://api.eu-west-1.parsable.net/v2/data-feed-manager/schema-registry/ - Fill in cluster addresses and passwords in
docker-compose.yml
. There are instructions inside the file. You can also usedocker-compose-example.yml
for reference. - Build docker image
cd kafka-connect-standalone docker build . -t kafka-connect-standalone
- Launch PostgresSQL database and Kafka Connect instances with Docker Compose
docker compose up