Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Bug
-
1.17.0, 1.16.1
-
None
-
None
Description
SQL Client '-j' option does not load custom jars to classpath as it was for example in Flink 1.15
As a result Flink 1.16 SQL Client is not able to discover classes through Flink's Factory discovery mechanism throwing an error like:
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.api.ValidationException: Could not find any factories that implement 'com.getindata.connectors.http.LookupQueryCreatorFactory' in the classpath.
The same Jar and sample job are working fine with Flink 1.15.
Flink 1.15.2
./bin/sql-client.sh -j flink-http-connector-0.9.0.jar
Flink 1.16.1
./bin/sql-client.sh -j flink-http-connector-0.9.0.jar
ADD JAR command does not solve " Could not find any factories" issue although jar seems to be added: