Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-31018

SQL Client -j option does not load user jars to classpath.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Bug
    • 1.17.0, 1.16.1
    • None
    • Table SQL / Client
    • 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:

      Attachments

        1. image-2023-02-10-15-53-39-330.png
          11 kB
          Krzysztof Chmielewski
        2. image-2023-02-10-15-54-32-537.png
          5 kB
          Krzysztof Chmielewski
        3. image-2023-02-10-16-05-12-407.png
          6 kB
          Krzysztof Chmielewski

        Activity

          People

            Unassigned Unassigned
            KristoffSC Krzysztof Chmielewski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: