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

Deprecate FlinkKafkaConsumer

    XMLWordPrintableJSON

Details

    • Hide
      `FlinkKafkaConsumer` has been deprecated in favor of `KafkaSource`. To upgrade to the new version, please store the offsets in Kafka with `setCommitOffsetsOnCheckpoints` in the old `FlinkKafkaConsumer` and then stop with a savepoint. When resuming from the savepoint, please use `setStartingOffsets(OffsetsInitializer.committedOffsets())` in the new `KafkaSourceBuilder` to transfer the offsets to the new source.
      Show
      `FlinkKafkaConsumer` has been deprecated in favor of `KafkaSource`. To upgrade to the new version, please store the offsets in Kafka with `setCommitOffsetsOnCheckpoints` in the old `FlinkKafkaConsumer` and then stop with a savepoint. When resuming from the savepoint, please use `setStartingOffsets(OffsetsInitializer.committedOffsets())` in the new `KafkaSourceBuilder` to transfer the offsets to the new source.

    Description

      With the introduction of the KafkaSource https://issues.apache.org/jira/browse/FLINK-18323 we should deprecate the FlinkKafkaConsumer to hint users to start the migration.

      Attachments

        Issue Links

          Activity

            People

              fpaul Fabian Paul
              fpaul Fabian Paul
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: