Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2999

Kafka channel and sink should enable statically assigned partition per event via header

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: Channel, Sinks+Sources
    • Labels:
      None

      Description

      This feature is useful for anyone who needs greater control of which partitions are being written to - normally in a situation where multiple Flume agents are being deployed in order to horizontally scale, or alternatively if there is a scenario where there is a skew in data that might lead to one or more partitions hotspotting.

      We also have the ability to specify custom partitions on to the Kafka Producer itself using the kafka.* configuration properties.

      The Kafka Producer provides the ability to set the partition ID using the following constructor (https://kafka.apache.org/090/javadoc/org/apache/kafka/clients/producer/ProducerRecord.html#ProducerRecord(java.lang.String,%20java.lang.Integer,%20K,%20V%29 ), this is just a matter of providing the option to use this constructor.

        Attachments

        1. FLUME-2999-4.patch
          51 kB
          Tristan Stevens

          Issue Links

            Activity

              People

              • Assignee:
                tmgstev Tristan Stevens
                Reporter:
                tmgstev Tristan Stevens
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: