You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "Flutemr (via GitHub)" <gi...@apache.org> on 2023/03/03 09:37:07 UTC

[GitHub] [dolphinscheduler] Flutemr commented on issue #13658: [Bug]Datax synchronizes mysql data, The task fails after about 2 hours each time

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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org