DataX¶
快速开始¶
Python2 转 Python3¶
-
Ubuntu
-
Windows
执行任务¶
-
PostgreSQLReader.json
{ "job": { "setting": { "speed": { "byte": 1048576 } }, "content": [ { "reader": { "name": "postgresqlreader", "parameter": { "connection": [ { "jdbcUrl": ["jdbc:postgresql://192.192.192.101:17700/demo"], "table": ["t_user"] } ], "username": "demo", "password": "demo", "column": ["id", "username", "age"] } }, "writer": { "name": "streamwriter", "parameter": { "print": true } } } ] } }
-
PostgreSQLWriter.json
{ "job": { "setting": { "speed": { "channel": 1 } }, "content": [ { "reader": { "name": "streamreader", "parameter": { "column": [ { "type": "Long", "value": 2 }, { "type": "String", "value": "mm" }, { "type": "Long", "value": 23 } ], "sliceRecordCount": 1 } }, "writer": { "name": "postgresqlwriter", "parameter": { "connection": [ { "jdbcUrl": "jdbc:postgresql://192.192.192.101:17700/demo", "table": ["t_user"] } ], "username": "demo", "password": "demo", "column": ["id", "username", "age"] } } } ] } }
插件开发¶
打包¶
-
打包
-
只打包指定插件