报错提示:Caused by: java.lang.RuntimeException: java.lang.ClassCastException: com.alibaba.druid.pool.DruidDataSource cannot be cast to com.alibaba.druid.pool.DruidDataSource
确认是jar包冲突导致的bug,于是下载了源码压缩包canal-canal-1.1.5.zip 下载地址 https://github.com/alibaba/canal/archive/refs/tags/canal-1.1.5.zip
下载源码然后修改client-adapter模块下的escore模块的pom文件
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
</dependency>
这个依赖加个范围
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<scope>provided</scope>
</dependency>
之后在项目根目录执行mvn clean package
将打好的es7x下的client-adapter.es7x-1.1.5-SNAPSHOT-jar-with-dependencies.jar跟canal-adapter的plugins下同名jar包替换就可以了;
替换的jar可进入我的主页资源下载;