Flutemr commented on issue #13658:
URL:
https://github.com/apache/dolphinscheduler/issues/13658#issuecomment-1453239225
> @Flutemr Can you show the contents of the datax script
The following is my script, the table data volume is relatively large,
synchronization time is long:
{
"job": {
"setting": {
"speed": {
"byte": 5242880
},
"errorLimit": {
"record": 0,
"percentage": 0.02
}
},
"content": [
{
"reader": {
"name": "mysqlreader",
"parameter": {
"username": "name",
"password": "pass",
"column": [
"id",
"capture_type",
"capture_time",
"create_time",
"image_path",
"community_id",
"data_id",
"point_id",
"del_flag",
"file_size",
"big_img"
],
"splitPk": "",
"where":"str_to_date(capture_time,'%Y-%m-%d')='${bizdate}'",
"connection": [
{
"table": [
"tb_zaxq_capture"
],
"jdbcUrl": [
"jdbc:mysql://ip:3306/databases?useSSL=false&serverTimezone=GMT%2B8"
]
}
]
}
},
"writer": {
"name": "hdfswriter",
"parameter": {
"defaultFS": "hdfs://ns1",
"fileType": "orc",
"path":
"/user/hive/warehouse/za_ods.db/ods_za_tb_zaxq_capture/dt=${bizdate1}",
"fileName":"ods_za_tb_zaxq_capture",
"writeMode": "append",
"fieldDelimiter": "\u0001",
"column": [
{"name":"id","type":"string"},
{"name":"capture_type","type":"string"},
{"name":"capture_time","type":"string"},
{"name":"create_time","type":"string"},
{"name":"image_path","type":"string"},
{"name":"community_id","type":"string"},
{"name":"data_id","type":"string"},
{"name":"point_id","type":"string"},
{"name":"del_flag","type":"string"},
{"name":"file_size","type":"string"}
{"name":"big_img","type":"string"}
]
}
}
}
]
},
"core":{
"transport": {
"channel": {
"speed": {
"byte": 1048576
}
}
}
}
}
--
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]