flink cdc3.0 mysql到mysql同步报错
Exception in thread "main" java.lang.RuntimeException: Cannot find factory with identifier "mysql" in the classpath.
Available factory classes are:
com.ververica.cdc.connectors.doris.factory.DorisDataSinkFactory
com.ververica.cdc.connectors.mysql.factory.MySqlDataSourceFactory
at com.ververica.cdc.composer.utils.FactoryDiscoveryUtils.getFactoryByIdentifier(FactoryDiscoveryUtils.java:60)
at com.ververica.cdc.composer.flink.FlinkPipelineComposer.createDataSink(FlinkPipelineComposer.java:144)
at com.ververica.cdc.composer.flink.FlinkPipelineComposer.compose(FlinkPipelineComposer.java:108)
at com.ververica.cdc.cli.CliExecutor.run(CliExecutor.java:65)
at com.ververica.cdc.cli.CliFrontend.main(CliFrontend.java:62)
配置文件
source:
type: mysql
hostname: 127.0.0.1
port: 3306
username: a
password: b
tables: demo1.t1
server-time-zone: Asia/Shanghai
sink:
type: mysql
hostname: 127.0.0.1
port: 3306
username: a
password: b
server-time-zone: Asia/Shanghai
pipeline:
name: mysql2mysql
parallelism: 1
route:
从报错看你是不是没有添加
<dependency>
<groupId>com.ververica</groupId>
<artifactId>flink-connector-cdc-mysql_2.12</artifactId>
<version>3.0.0</version>
</dependency>
这个依赖啊
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
实时计算Flink版是阿里云提供的全托管Serverless Flink云服务,基于 Apache Flink 构建的企业级、高性能实时大数据处理系统。提供全托管版 Flink 集群和引擎,提高作业开发运维效率。