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

Docs to have a code snippet of Kafka partition discovery

    XMLWordPrintableJSON

Details

    Description

      Tzu-Li (Gordon) said:

      Yes, it might be helpful to have a code snippet to demonstrate the configuration for partition discovery.

       


      Background
       
      The docs correctly say:
       

      To enable it, set a non-negative value for flink.partition-discovery.interval-millis in the provided properties config

       
      So it should be set in the Properties that are passed in the constructor of FlinkKafkaConsumer.
       
      I had somehow assumed that this should go to flink-conf.yaml (maybe because it starts with "flink."?), and obviously the FlinkKafkaConsumer doesn't read that.
       
      A piece of example code might've helped me avoid this mistake. 
       
      This was discussed on the user mailing list:
      http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Kafka-Consumers-Partition-Discovery-doesn-t-work-tp19129p19484.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            juho.autio.r Juho Autio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: