davidzollo commented on issue #8388:
URL: https://github.com/apache/seatunnel/issues/8388#issuecomment-2653664893
Batch task from MySQL to Doris
```
env {
execution.parallelism = 4
job.mode = "BATCH"
}
source {
Jdbc {
result_table_name = "tab1"
url =
"jdbc:mysql://x.x.x.x:9999/test?useSSL=false&serverTimezone=GMT%2b8"
driver = "com.mysql.cj.jdbc.Driver"
connection_check_timeout_sec = 100
user = "u"
password = "p"
query = "select id,'2025-02-11' as pt_dt, name, task_type,
task_execute_type, task_code, task_definition_version, process_instance_id,
state, submit_time, start_time, end_time, host, execute_path, log_path,
alert_flag, retry_times, pid, app_link, task_params, flag, retry_interval,
max_retry_times, task_instance_priority, worker_group, environment_code,
environment_config, executor_id, first_submit_time, delay_time, var_pool,
task_group_id, dry_run, cpu_quota, memory_max, test_flag, is_cache, cache_key,
process_instance_name, project_code, executor_name,'2025-02-11 14:38:18' as
backup_time from ql"
partition_column = "id"
partition_num = 4
fetch_size = 2000
}
}
sink {
Doris {
fenodes = "x.x.x.x:9999"
username = "u"
password = "p"
database = "bd_seb_test"
table = "t_ds_task_instance_backup"
sink.label-prefix = "mysql_to_doris"
sink.enable-2pc = "false"
doris.batch.size = 500000
sink.buffer-size = 104857600
sink.max-retries = 5
doris.config = {
format = "json"
read_json_by_line = "true"
}
}
}
```
--
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]