Really confused by some strange errors from Flink ...
# troubleshooting
d
Really confused by some strange errors from Flink here when setting up a postgres table as a source:
Copy code
Cannot discover a connector using option: 'connector'='jdbc'
...
Could not find any factory for identifier 'jdbc' that implements 'org.apache.flink.table.factories.DynamicTableFactory' in the classpath.
This is despite having all the correct jars in my uber-jar:
Copy code
jar -tf lib/myfatjar-0.1.0-combined.jar | grep -i org/apache/flink/connector/jdbc/dialect/psql
org/apache/flink/connector/jdbc/dialect/psql/
org/apache/flink/connector/jdbc/dialect/psql/PostgresDialectFactory.class
org/apache/flink/connector/jdbc/dialect/psql/PostgresDialect.class
org/apache/flink/connector/jdbc/dialect/psql/PostgresTypeMapper.class
I've had my JDBC connector working before but I guess not as the source of my table environment. Does it support DynamicTables?
Flink also seems to not be able to find my JDBC at all??
Copy code
Available factory identifiers are:

blackhole
datagen
filesystem
print
python-input-format
I get the same/similar error with CDC jar:
Copy code
Caused by: org.apache.flink.table.api.ValidationException: Could not find any factory for identifier 'postgres-cdc' that implements 'org.apache.flink.table.factories.DynamicTableFactory' in the classpath.
Maybe it has to do with my maven shade plugin? I vaugely recall an error like this in the past.
I am already using the maven shade settings from this page: https://nightlies.apache.org/flink/flink-docs-master/docs/dev/configuration/maven/