Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for multiple databases - MySQL #531

Closed
subkanthi opened this issue Apr 8, 2024 · 2 comments · Fixed by #535
Closed

Added support for multiple databases - MySQL #531

subkanthi opened this issue Apr 8, 2024 · 2 comments · Fixed by #535
Assignees
Labels
high-priority kafka Issues related to Kafka version lightweight Issues related to Lightweight version qa-verified label to mark issues that were verified by QA
Milestone

Comments

@subkanthi
Copy link
Collaborator

Debezium connectors supports multiple databases use this configuration variable
"database.include.list", where a list of databases can be provided.

But currently Sink connector only supports writing the results to a single database.

clickhouse.server.database: "test"

This issue is to add support for multiple databases so we could replicate multiple MySQL databases to multiple CH databases using one sink connector process.

@subkanthi subkanthi added this to the 2.2.0 milestone Apr 8, 2024
@subkanthi subkanthi modified the milestones: 2.2.0, 2.1.0 Apr 9, 2024
@subkanthi subkanthi linked a pull request Apr 9, 2024 that will close this issue
@subkanthi subkanthi added the lightweight Issues related to Lightweight version label Apr 9, 2024
@TruongNT95
Copy link

TruongNT95 commented Apr 11, 2024

I got the same problem with kafka sink connector. I have 700+ databases, each database has 20+ tables stored in kafka topic follow structure :
db1.table1, db1.table2,db1.table3....
db2.table1, db2.table2,db2.table3....
db3.table1, db3.table2, db3.table3....
....
I am looking for a solution to map all databases to Clickhouse with only one connector. Do you have any solution for this problem? Something to solve like "topics.regex" of Debezium

@subkanthi
Copy link
Collaborator Author

I got the same problem with kafka sink connector. I have 700+ databases, each database has 20+ tables stored in kafka topic follow structure : db1.table1, db1.table2,db1.table3.... db2.table1, db2.table2,db2.table3.... db3.table1, db3.table2, db3.table3.... .... I am looking for a solution to map all databases to Clickhouse with only one connector. Do you have any solution for this problem? Something to solve like "topics.regex" of Debezium

Hi @TruongNT95 , currently the limitation is we only support one ClickHouse destination database. We are working on this feature first for the lightweight version, we will work on Kafka support after that.

@subkanthi subkanthi added high-priority kafka Issues related to Kafka version labels Apr 17, 2024
@Selfeer Selfeer added the qa-verified label to mark issues that were verified by QA label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high-priority kafka Issues related to Kafka version lightweight Issues related to Lightweight version qa-verified label to mark issues that were verified by QA
Projects
None yet
3 participants