This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Kafka Connect & JDBC Works for One Source and Sink, but not Two
Post Body

Hi all,

I have what seems a simple MySQL consumer to Postgresql sink. The consumers are configured as below, credentials changed...

The reason for two source/sink pairs is each table uses different primary keys and timestamp columns.

name=mysql-first-source

connector.class=io.confluent.connect.jdbc.JdbcSourceConnector

tasks.max=1

connection.url=jdbc:mysql://mysql.example.com:3306/my_database?user=alice&password=secret

key.converter=io.confluent.connect.avro.AvroConverter

key.converter.schema.registry.url=http://localhost:8081

value.converter=io.confluent.connect.avro.AvroConverter

value.converter.schema.registry.url=http://localhost:8081

table.whitelist=users

mode=timestamp incrementing

timestamp.column.name=modified

incrementing.column.name=user_id

topic.prefix=users_pipeline-

##############################################

name=mysql-second-source

connector.class=io.confluent.connect.jdbc.JdbcSourceConnector

tasks.max=1

connection.url=jdbc:mysql://mysql.example.com:3306/my_database?user=alice&password=secret

key.converter=io.confluent.connect.avro.AvroConverter

key.converter.schema.registry.url=http://localhost:8081

value.converter=io.confluent.connect.avro.AvroConverter

value.converter.schema.registry.url=http://localhost:8081

table.whitelist=products

mode=timestamp incrementing

timestamp.column.name=date_status_change

incrementing.column.name=product_id

topic.prefix=products-pipeline-

Sinks are configured to work with the above examples, only a Postgresql connection. The first source/sink combination works perfectly.

My problem is, the second consumer does not deliver anything to its Postgresql sink. Table schema is identical, and running the connector-standalone without forking shows no errors. I see the second source's query logged, but the data doesn't make it to the Postgresql sink.

What am I missing?

Edited for clarity.

Author
Account Strength
100%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
18,939
Link Karma
2,534
Comment Karma
16,311
Profile updated: 2 days ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago