doriswriter/doriswriter/doc.init-env.shdoriswriter/ directory to DataX/doriswriter directory through soft link.<module>doriswriter</module> module to the DataX/pom.xml file.DataX/core/pom.xml file from 4.5 to 4.5.13.DataX/ directory. Due to the soft link, any modifications in the DataX/doriswriter directory will be reflected in the doriswriter/ directory, which facilitates code submission for developers.init-env.sh.DataX/doriswriter as needed.mvn clean install -pl plugin-rdbms-util,doriswriter -DskipTests
mvn package assembly:assembly -Dmaven.test.skip=true
target/datax/datax/.DataX/pom.xml.Could not find artifact com.alibaba.datax:datax-all:pom:0.0.1-SNAPSHOT ...
alibaba/datax/ obtained to the corresponding .m2/repository/com/alibaba/ of the maven in use.CREATE TABLEt_test(idbigint(30) NOT NULL,order_codevarchar(30) DEFAULT NULL COMMENT '',line_codevarchar(30) DEFAULT NULL COMMENT '',remarkvarchar(30) DEFAULT NULL COMMENT '',unit_novarchar(30) DEFAULT NULL COMMENT '',unit_namevarchar(30) DEFAULT NULL COMMENT '',pricedecimal(12,2) DEFAULT NULL COMMENT '',PRIMARY KEY(id) USING BTREE)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='';
CREATE TABLEods_t_test(idbigint(30) NOT NULL,order_codevarchar(30) DEFAULT NULL COMMENT '',line_codevarchar(30) DEFAULT NULL COMMENT '',remarkvarchar(30) DEFAULT NULL COMMENT '',unit_novarchar(30) DEFAULT NULL COMMENT '',unit_namevarchar(30) DEFAULT NULL COMMENT '',pricedecimal(12,2) DEFAULT NULL COMMENT '')ENGINE=OLAPUNIQUE KEY(id,order_code)DISTRIBUTED BY HASH(order_code) BUCKETS 1PROPERTIES ("replication_allocation" = "tag.location.default: 3","in_memory" = "false","storage_format" = "V2");
import_t_test.json{"job": {"setting": {"speed": {"channel": 1},"errorLimit": {"record": 0,"percentage": 0}},"content": [{"reader": {"name": "mysqlreader","parameter": {"username": "xxx","password": "xxx","column": ["id","order_code","line_code","remark","unit_no","unit_name","price"],"connection": [ { "table": [ "t_test" ], "jdbcUrl": [ "jdbc:mysql://10.10.10.1:3306/demo" ] } ] }},"writer": {"name": "doriswriter","parameter": {"feLoadUrl": ["127.0.0.1:8030","127.0.0.2:8030"],"beLoadUrl": ["127.0.0.3:8040","127.0.0.4:8040","127.0.0.5:8040"],"jdbcUrl": "jdbc:mysql://127.0.0.1:9030/","database": "demo","table": "ods_t_test","column": ["id","order_code","line_code","remark","unit_no","unit_name","price"],"username": "xxx","password": "xxx","postSql": [],"preSql": [],"loadProps": {},"maxBatchRows" : 300000,"maxBatchByteSize" : 20971520}}}]}}
Feedback