davidzollo commented on issue #8388:
URL: https://github.com/apache/seatunnel/issues/8388#issuecomment-2747927293
MySQL cdc to Starrocks
---
env {
# You can set engine configuration here
#parallelism = 4
job.mode = "STREAMING"
checkpoint.interval = 2000
checkpoint.timeout=1800000
#read_limit.bytes_per_second=7000000
#read_limit.rows_per_second=100000
job.name = "mysql_to_starrocks_test"
#job.retry.times=3
#job.retry.interval.seconds=30
}
source {
MySQL-CDC {
schema-changes.enabled = true
username = "****"
password = "****"
base-url =
"jdbc:mysql://****?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&useSSL=false"
startup.mode = "earliest"
server-id = 6671
#startup.specific-offset.file = "mysql-bin.020789"
#startup.specific-offset.pos = "4"
table-names = [
"test.admin"
]
}
}
transform {
}
sink {
StarRocks {
nodeUrls = ["*****:8030"]
username = "****"
password = "****"
database = "test"
table = "ts_${table_name}"
base-url = "jdbc:mysql://*****:9030/test"
max_retries = 3
enable_upsert_delete = true
"schema_save_mode"="RECREATE_SCHEMA"
"data_save_mode"="DROP_DATA"
save_mode_create_template = """
CREATE TABLE IF NOT EXISTS test.`${table_name}` (
${rowtype_primary_key},
${rowtype_fields}
) ENGINE=OLAP
PRIMARY KEY (${rowtype_primary_key})
DISTRIBUTED BY HASH (${rowtype_primary_key})
PROPERTIES (
"replication_num" = "3",
"in_memory" = "false",
"enable_persistent_index" = "true",
"replicated_storage" = "true",
"compression" = "LZ4"
)
"""
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]