Overview
Use Cases
Node Specification
Cluster Architecture
MaxTime since the last successful sync from the local file (for the initial sync, you can specify an initial time value as required by your business).MaxTime as the LastTime (lower limit of the incremental sync) and CurTime as the upper limit.datax.json configuration to specify the time interval (WHERE clause in SQL) of the synced table as [LastTime, CurTime).CurTime to the local file for the next sync.datax.json configuration file is as shown below:{"job": {"setting": {"speed": {"channel": 3,"byte": 1048576,"record": 1000},"errorLimit": {"record": 2,"percentage": 0.02}},"content": [{"reader": {"name": "mysqlreader","parameter": {"username": "******","password": "******","connection": [{"jdbcUrl": ["jdbc:mysql://***:***/test?serverTimezone=Asia/Shanghai"],"querySql": ["select * from cdw_test_table where updateTime >= '${lastTime}' and updateTime < '${currentTime}'"]}]}},"writer": {"name": "gpdbwriter","parameter": {"username": "******","password": "******","column": ["*"],"segment_reject_limit": 0,"copy_queue_size": 2000,"num_copy_processor": 1,"num_copy_writer": 1,"connection": [{"jdbcUrl": "jdbc:postgresql://***:***/***","table": ["ods_cdw_test_table"]}]}}}]}}
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários