Thanks a lot for looking into it Dawid,

In the
src/main/resources/META-INF/services/org.apache.flink.table.factories.Factory
file I only see

org.apache.flink.connector.jdbc.table.JdbcDynamicTableFactory

Even after applying the ServicesResourceTransformer.


On Tue, 26 Jan 2021 at 11:58, Dawid Wysakowicz <dwysakow...@apache.org>
wrote:

> Hi,
>
> Unfortunately I am not familiar with the packaging of
> flink-connector-postgres-cdc. Maybe @Jark could help here?
>
> However, I think the problem that you cannot find the connector is caused
> because of lack of entry in the resulting Manifest file. If there are
> overlapping classes maven does not exclude whole dependencies, but rather
> picks the overlapping class from one of the two. Could you check if you see
> entries for all tables in
> src/main/resources/META-INF/services/org.apache.flink.table.factories.Factory.
>
> If not, you could try applying the ServicesResourceTransformer[1]
>
> Best,
>
> Dawid
>
> [1]
> https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html#ServicesResourceTransformer
> On 26/01/2021 12:29, Sebastián Magrí wrote:
>
> Hi!
>
> I've reported an issue with the postgresql-cdc connector apparently caused
> by the maven shade plugin excluding either the JDBC connector or the cdc
> connector due to overlapping classes. The issue for reference is here:
>
> https://github.com/ververica/flink-cdc-connectors/issues/90
>
> In the meantime, however, I've been trying to figure out if I can set up
> an exclusion rule to fix this in my pom.xml file, without success.
>
> The `org.postgresql:postgresql` dependency is being added manually by me
> to have a sink on a postgresql table and injected by the cdc connector
> seemingly via its debezium connector dependency.
>
> Any guidance or hints I could follow would be really appreciated.
>
> --
> Sebastián Ramírez Magrí
>
>

-- 
Sebastián Ramírez Magrí

Reply via email to