Michael Richardson
07/19/2024, 5:56 AMImpalaJDBC42.jar
and flink-connector-jdbc-3.2.0-1.19.jar
files to the pipeline.jars
and pipeline.classpaths
.
When i run the application I get the following error
Caused by : java.lang.IllegalStateEException: Could not find any jdbc dialect factory that can handle url 'jdbc:impala://<hostname>:<port>/<db_name>' that implements 'org.apache.flink.connector.jdbc.dialect.JdbcDialectFactory' in the classpath
Will the flink JDBC connector only work with the listed databases in the documentation as they have "dialectfactories" as part of the flink-connector-jdbc, or is it possible to get additional databases like impala to work with a JDBC connection?D. Draco O'Brien
07/19/2024, 7:21 AMD. Draco O'Brien
07/19/2024, 7:23 AMpublic class ImpalaJdbcDialect extends JdbcDialect {
@Override
public boolean canHandle(String url) {
return url.startsWith("jdbc:impala:");
}
// implement other methods as needed.
}
D. Draco O'Brien
07/19/2024, 7:24 AMJdbcDialects.registerDialect(new ImpalaJdbcDialect());
D. Draco O'Brien
07/19/2024, 7:25 AMorg.apache.flink.connector.jdbc.dialect.JdbcDialectFactory
and list your dialect class there.D. Draco O'Brien
07/19/2024, 7:26 AMMichael Richardson
07/21/2024, 9:08 PM