itc7 commented on issue #5391:
URL: https://github.com/apache/seatunnel/issues/5391#issuecomment-1696579566
```
env {
execution.parallelism = 5
job.mode = "STREAMING"
}
source {
MySQL-CDC {
result_table_name = "*****r_info"
username = "admin"
password = "******"
table-names = ["c*****y.*****r_info"]
base-url =
"jdbc:mysql://b**************rcq.sa-east-1.rds.amazonaws.com:3306/ca*****?useUnicode=true&characterEncoding=utf8&useSSL=false"
server-time-zone = "America/Araguaina"
}
}
sink {
S3Redshift {
jdbc_url =
"redshift-cluster-2.cgwg*******mp.sa-east-1.redshift.amazonaws.com:5439/ca*****2"
jdbc_user = "awsuser"
jdbc_password = ""******""
execute_sql="COPY *****r_info FROM 's3://test${path}' IAM_ROLE
'arn:aws:iam::73*******82:role/RedshiftAllCommandsFullAccessRule' REGION
'sa-east-1' removequotes emptyasnull blanksasnull maxerror 100 delimiter '|' ;"
access_key = ""
secret_key = ""
bucket = "s3a://seatunnel-ca*****"
tmp_path = "/tmp/seatunnel"
path="/seatunnel/text"
row_delimiter="\n"
partition_dir_expression="${k0}=${v0}"
is_partition_field_write_in_file=true
file_name_expression="${transactionId}_${now}"
file_format_type = "text"
filename_time_format="yyyy.MM.dd"
is_enable_transaction=true
fs.s3a.endpoint="s3.sa-east-1.amazonaws.com"
fs.s3a.aws.credentials.provider =
"arn:aws:iam::73*******82:role/RedshiftAllCommandsFullAccessRule"
}
}
```
Here is my config file
`./bin/seatunnel.sh --config ./config/ca*****_order.template -e local`
Here is my start command
--
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]