Hi, I need some help fixing this error. I have a p...
# troubleshooting
l
Hi, I need some help fixing this error. I have a pyflink postgres cdc job that runs fine locally, like this:
Copy code
$python flink_cdc.py
But when I deployed it to a standalone cluster, I go this error:
Copy code
2024-06-14 09:14:07,679 ERROR org.apache.flink.runtime.source.coordinator.SourceCoordinator [] - Failed to create Source Enumerator for source Source: drivers_cdc_source[1]
org.apache.flink.util.FlinkRuntimeException: Failed to discover captured tables for enumerator

.....

Caused by: io.debezium.DebeziumException: Couldn't initialize type registry
	at io.debezium.connector.postgresql.TypeRegistry.<init>(TypeRegistry.java:126) ~[flink-sql-connector-postgres-cdc-3.1.0.jar:3.1.0]

.....

Caused by: java.sql.SQLException: Cannot unwrap to org.postgresql.jdbc.PgConnection
	at org.postgresql.jdbc.PgConnection.unwrap(PgConnection.java:1587) ~[flink-sql-connector-postgres-cdc-3.1.0.jar:3.1.0]
I was able to solve this problem by changing the postgres cdc connect from
flink-sql-connector-postgres-cdc-3.1.0.jar:3.1.0
to
flink-sql-connector-postgres-cdc-3.1.0.jar:3.1.0
. I also switched to the version released by Ververica.
πŸ™Œ 1