datax版本3.0
python支持2和3
jdk1.8

json文件如下,自己已跑通!
参考官网:https://github.com/alibaba/DataX/

{
    "job": {
         "setting": {
            "speed": {
                "channel": 1
            }
        },

        "content": [
            {
                "reader": {
                    "name": "postgresqlreader",
                    "parameter": {
                        "username": "***",
                        "password": "***",
                        "where": "", --可以不写
                        "connection": [
                            {
                                "querySql": [
                                    "select * from 模式名字.表名;"
                                ],
                                "jdbcUrl": [
                                    "jdbc:postgresql://192.**.**.**:5432/数据库名字"
                                ]
                            }
                        ]
                    }
                },
               "writer": {
					"name": "postgresqlwriter",
					"parameter": {
					    "batchSize":"10000",
						"username": "***",
						"password": "***",
						"column": [
							"score","name","age"
						],
						"preSql": [
             						
         					   ],						
						"connection": [
							{
								"jdbcUrl": 
                                "jdbc:postgresql://192.**.**.**:5432/数据库名字",
								"table": [ 
                                             "模式名字.表名"
								]
							}
						]
					}
				}
			}
        ]
    }
}

版权声明:本文为weixin_43806056原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_43806056/article/details/125515945