-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysql数据表同步到postgresql数据库,由于字段列顺序不完全对应导致同步问题 #109
Comments
It is a bug, which version are you using? |
版本号 bireme-1.0.0 |
2.0 发布了第一个测试版。这个问题应该已经修掉了。 |
我使用2.0的第一个测试版,配置文件直接从1.0拷贝过来的,启动报错如下: 请问如何处理呢 |
错误日志logs/bireme.err,输出日志logs/bireme.out如下 配置文件etc/config.properties 已经填写debezium1.kafka.namespace配置项 |
2018-08-17 13:48:10,791 main DEBUG LoggerContext[name=764c12b6, org.apache.logging.log4j.core.LoggerContext@408d971b] started OK. 我也是报这个问题,请问解决了吗 |
我的配置文件
|
https://github.com/HashDataInc/bireme/tree/master/integration_test/debezium/etc 2.0和1.0的配置不兼容,以上链接是个示例 |
使用 debezium+kafka+bireme 同步方式
1、数据源mysql表broad,字段顺序为id(id为主键) info city,数据如下:
+----+---------+----------+
| id | info | city |
+----+---------+----------+
| 1 | record1 | hangzhou |
| 2 | record1 | hangzhou |
| 3 | c | c |
| 4 | c | c |
| 5 | c | c |
| 6 | c | c |
| 7 | c | c |
| 8 | c | c |
| 9 | c | c |
| 10 | c | c |
+----+---------+----------+
2、目标库postgresql表broad,字段顺序为city id(id为主键) info(和数据源顺序不完全对应)
bireme同步结束后,数据如下
target=> select * from broad;
city | id | info
----------+----+---------
hangzhou | 2 | record1
c | 10 | c
出现了部分数据的同步
如果字段顺序完全对应,同步无异常
这种字段顺序不完全对应的出现部分数据同步,如何修复呢?
The text was updated successfully, but these errors were encountered: