{ "job": { "content": [ { "reader": { "name": "mysqlreader", "parameter": { "column": [ "*" ], "connection": [ { "jdbcUrl": [ "jdbc:mysql://localhost:3306/order?useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true" ], "querySql": [ "select * from test_order where updateTime >= FROM_UNIXTIME(${lastTime}) and operationDate < FROM_UNIXTIME(${currentTime})" ] } ], "password": "root", "username": "root" } }, "writer": { "name": "hdfswriter", "parameter": { "defaultFS": "hdfs://localhost:9000", "fileType": "text", "path": "/user/hive/warehouse/offline.db/test_order/${partition}", "fileName": "test_order", "column": [ { "name": "keyno", "type": "string" }, { "name": "name", "type": "string" }, { "name": "code", "type": "string" }, { "name": "status", "type": "string" }, { "name": "province", "type": "string" }, { "name": "city", "type": "string" } ], "writeMode": "append", "fieldDelimiter": "," } } } ], "setting": { "speed": { "channel": 2 } } } }