Enrique Perez
04/09/2024, 10:55 AMCaused by: org.apache.flink.table.api.ValidationException: Could not find any factory for identifier 'jdbc' that implements 'org.apache.flink.table.factories.DynamicTableFactory' in the classpath.
Available factory identifiers are:
blackhole
datagen
filesystem
Kafka
print
upsert-Kafka
at org.apache.flink.table.factories.FactoryUtil.discoverFactory(FactoryUtil.java:608)
at org.apache.flink.table.factories.FactoryUtil.enrichNoMatchingConnectorError(FactoryUtil.java:794)
... 37 more
I used to get this error locally, but it worked fine after manually adding the jar file for flink-connector-jdbc to the docker image.
But I thought I wouldn’t have to do that for AWS.
Have anyone worked with the Table API in AWS Managed Apache Flink?Aleksandr Pilipenko
04/09/2024, 10:58 AMAleksandr Pilipenko
04/09/2024, 11:01 AMflink-connector-jdbc dependency added to your project? In your pom.xml or gradle.build, depending on how you build your application.Enrique Perez
04/09/2024, 11:06 AMAleksandr Pilipenko
04/09/2024, 11:08 AMEnrique Perez
04/09/2024, 11:44 AMdependencies {
implementation 'org.apache.flink:flink-connector-kafka:3.1.0-1.18'
implementation 'org.apache.flink:flink-connector-jdbc:3.1.2-1.18'
}Aleksandr Pilipenko
04/09/2024, 12:19 PMEnrique Perez
04/09/2024, 12:29 PMtasks {
namedShadowJar("shadowJar") {
exclude("org.apache.flink", "force-shading")
exclude("com.google.code.findbugs", "jsr305")
exclude("org.slf4j")
exclude("org.apache.logging.log4j")
}
}Aleksandr Pilipenko
04/09/2024, 12:46 PMMETA-INF/servicesEnrique Perez
04/09/2024, 1:26 PM