-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added logic to create configuration (yaml) from user input
- Loading branch information
Showing
7 changed files
with
254 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: "company-1" | ||
topic.prefix: "sink-connector-1" | ||
database.hostname: "mysql-master" | ||
database.port: "3306" | ||
database.user: "root" | ||
database.password: "root" | ||
database.server.id: "12345" | ||
database.server.name: "ER54" | ||
database.include.list: test | ||
table.include.list: "" | ||
clickhouse.server.url: "clickhouse" | ||
clickhouse.server.user: "root" | ||
clickhouse.server.password: "root" | ||
clickhouse.server.port: "8123" | ||
database.allowPublicKeyRetrieval: "true" | ||
snapshot.mode: "initial" | ||
offset.flush.interval.ms: 5000 | ||
connector.class: "io.debezium.connector.mysql.MySqlConnector" | ||
offset.storage: "io.debezium.storage.jdbc.offset.JdbcOffsetBackingStore" | ||
offset.storage.jdbc.offset.table.name: "altinity_sink_connector.replica_source_info" | ||
offset.storage.jdbc.url: "jdbc:clickhouse://clickhouse:8123/altinity_sink_connector" | ||
offset.storage.jdbc.user: "root" | ||
offset.storage.jdbc.password: "root" | ||
offset.storage.jdbc.offset.table.ddl: "CREATE TABLE if not exists %s | ||
( | ||
`id` String, | ||
`offset_key` String, | ||
`offset_val` String, | ||
`record_insert_ts` DateTime, | ||
`record_insert_seq` UInt64, | ||
`_version` UInt64 MATERIALIZED toUnixTimestamp64Nano(now64(9)) | ||
) | ||
ENGINE = ReplacingMergeTree(_version) ORDER BY offset_key SETTINGS index_granularity = 8192" | ||
offset.storage.jdbc.offset.table.delete: "select * from %s" | ||
offset.storage.jdbc.offset.table.select: "SELECT id, offset_key, offset_val FROM %s FINAL ORDER BY record_insert_ts, record_insert_seq" | ||
schema.history.internal: "io.debezium.storage.jdbc.history.JdbcSchemaHistory" | ||
schema.history.internal.jdbc.url: "jdbc:clickhouse://clickhouse:8123/altinity_sink_connector" | ||
schema.history.internal.jdbc.user: "root" | ||
schema.history.internal.jdbc.password: "root" | ||
schema.history.internal.jdbc.schema.history.table.ddl: "CREATE TABLE if not exists %s | ||
(`id` VARCHAR(36) NOT NULL, `history_data` VARCHAR(65000), `history_data_seq` INTEGER, `record_insert_ts` TIMESTAMP NOT NULL, `record_insert_seq` INTEGER NOT NULL) ENGINE=ReplacingMergeTree(record_insert_seq) order by id" | ||
schema.history.internal.jdbc.schema.history.table.name: "altinity_sink_connector.replicate_schema_history" | ||
enable.snapshot.ddl: "true" | ||
persist.raw.bytes: "false" | ||
auto.create.tables: "true" | ||
auto.create.tables.replicated: "true" | ||
database.connectionTimeZone: "UTC" | ||
clickhouse.database.override.map: "employees:employees2, products:productsnew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.