Replies: 5 comments 3 replies
-
类加载顺序问题,flink默认是child-first,在flink的flink-conf.yaml文件中添加 |
Beta Was this translation helpful? Give feedback.
-
1.14.5 mysql-cdc 一样的问题, |
Beta Was this translation helpful? Give feedback.
-
same issue. flink 1.14.5 cdc 2.2.1 |
Beta Was this translation helpful? Give feedback.
-
直接把cdc的jar包放到lib下后不重启flink集群,进入sql命令行会报这个错,重启flink集群再进sql命令行就好了 |
Beta Was this translation helpful? Give feedback.
-
这个错误主要是切换了类加载器,然后用这个类加载器做反序列化,如果类的版本不一致就可能报这个错误。 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
mysql cdc用的包是flink-sql-connector-mysql-cdc-2.1.0.jar,flink版本是1.13.3,同时mysql开启了binlog
在sql-client.sh中执行如下SQL:
CREATE TABLE products (
id INT,
name STRING,
description STRING,
PRIMARY KEY (id) NOT ENFORCED
) WITH (
'connector' = 'mysql-cdc',
'hostname' = 'x.x.x.x',
'port' = '3306',
'username' = 'root',
'password' = '123456',
'database-name' = 'test',
'table-name' = 'products'
);
select * from products;
报错如下:
[ERROR] Could not execute SQL statement. Reason:
java.io.StreamCorruptedException: unexpected block data
Beta Was this translation helpful? Give feedback.
All reactions