-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 行记录数据,adapter 有监测到数据变更,但并没有同步到es #2284
Comments
和你一样的情况,日志上没报错,也有数据变更记录,但es上就是没数据。。我一开始用的es7.1,后来换成es6.x,也还是一样的问题,,端口换成9200和9300都没用,es上始终没数据写进去。。。。 |
我解决是改了源码,是大小写的问题导致的 |
@Ecli2h 我也是一样的问题,请问您是改了哪块代码 |
canal\client-adapter\elasticsearch\src\main\java\com\alibaba\otter\canal\client\adapter\es\support\ESSyncUtil.java |
1.1.5版本源码的问题,下载源码,修改client-adapter/escore下的pom文件,将 com.alibabadruid包加上 provided配置,然后canal重新打包,再在canal-canal-1.1.5\client-adapter\es7x\target\目录下找到client-adapter.es7x-1.1.5-jar-with-dependencies.jar,将这个文件复制到/usr/local/canal_adapter/plugin下,重启adapter即可 |
同样的问题 ,看到楼上的讨论,我也试试这个方式 |
这里有解决方法,https://github.com/alibaba/canal/issues/3144,我最开始是看漏了adapter日志中的报错信息,Canal Adapter com.alibaba.druid.pool.DruidDataSource cannot be cast to com.alibaba.druid.pool.DruidDataSource,看看是不是有这个报错 |
我找到一个和我问题一样的issue
@agapple 大佬是说没有开启row模式,我检查我的数据库是开启的,但是还是同样的问题,修改mysql 行记录数据,adapter 有监测到数据变更,但并没有同步到es,日志没有报错
The text was updated successfully, but these errors were encountered: