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

Encountered NoClassDefFoundError when using flink-sql-connector-elasticsearch6

    XMLWordPrintableJSON

Details

    Description

      When I use sql-client to submit job that sink data to elasticsearch, it seems that the `NoClassDefFoundError` arises as shown in the figure below. Note that the connector jar I used is flink-sql-connector-elasticsearch6-4.0-SNAPSHOT.jar, it is a uber jar compiled from flink-connector-elasticsearch repo's main branch.

      Through some investigations, I found that in flink-sql-connector-elasticsearch6 module's pom.xml, we manually excluded the `com.carrotsearch: hppc` dependency, which is no problem for the 6.3.1 version of elasticsearch. However, FLINK-25189 bump this to 6.8.20, which does requires the dependence of hppc. Therefore, an `NoClassDefFoundError` occurred.

       

       

      Attachments

        Issue Links

          Activity

            People

              Weijie Guo Weijie Guo
              Weijie Guo Weijie Guo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: