背景: flink 1.13.2 cdh集群
报错:
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.api.ValidationException: Could not find any factory for identifier 'mysql-cdc' that implements 'org.apache.flink.table.factories.DynamicTableFactory' in the classpath.
Available factory identifiers are:
blackhole
datagen
filesystem
kafka
print
upsert-kafka
原因: 缺少jar包
flink cdc 依赖下载地址:
Welcome to Flink CDC — Flink CDC 2.0.0 documentation
报错:
[ERROR] Could not execute SQL statement. Reason:
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
原因: 源表中的字段类型 和 cdc创建的表中的字段类型不一致,且无法转换,修改字段类型
报错:
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.api.V