Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6063

KafkaIO: add writing support with ProducerRecord

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.10.0
    • io-java-kafka
    • None

    Description

      Currently, the default input collection for KafkaIO.Write is PCollection<KV<K,V>>. To support writing of Kafka headers or different output Kafka topics, we need to change type of input collection to PCollection<ProducerRecord<K,V>>. Also, it will make sense to use ProducerRecord<K,V> instead of KV<K,V> internally in KafkaIO to keep all meta information.

      In the same time, we need to keep compatibility for old interface based on KV<K,V> but make it deprecated and totally move to ProducerRecord<K,V> later.

      Attachments

        Issue Links

          Activity

            People

              aromanenko Alexey Romanenko
              aromanenko Alexey Romanenko
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m