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

Build failure: StatefulSink not found

    XMLWordPrintableJSON

Details

    Description

      Locally in the IntelliJ building Flink fails for me due to:

      flink-apache/flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/statemachine/KafkaEventsGeneratorJob.java:72:42
      java: cannot access org.apache.flink.api.connector.sink2.StatefulSink
        class file for org.apache.flink.api.connector.sink2.StatefulSink not found
      

      flink-examples depend on flink-connector-kafka in version 3.0.0-17 that in turns is still referring to the StatefulSink:

      public class KafkaSink<IN> implements StatefulSink<IN, KafkaWriterState>, TwoPhaseCommittingSink<IN, KafkaCommittable> (...)
      

      which has been deleted in FLINK-36245. I think maven builds might be working due to some luck and differences between how IntelliJ and Maven are interpreting pom files and dealing with the dependencies.

      CC kunni renqs Leonard

      Attachments

        Issue Links

          Activity

            People

              kunni Yanquan Lv
              pnowojski Piotr Nowojski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: