Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7723

Kafka Connect support override worker kafka api configuration with connector configuration that post by rest api

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: KafkaConnect
    • Labels:

      Description

      I'm using kafka sink connect; "auto.offset.reset" is set in connect-distributed*.properties;
      It works for all connector which in one worker; So the consumer will poll records from latest or earliest; I can not control the auto.offset.reset in connector configs post with rest api;

      So I think is necessary to override worker kafka api configs with connector configs;

      Like this

        {
          "name": "test",
          "config": {
              "consumer.auto.offset.reset": "latest",
              "consumer.xxx"
              "connector.class": "com.laomei.sis.solr.SolrConnector",
              "tasks.max": "1",
              "poll.interval.ms": "100",
              "connect.timeout.ms": "60000",
              "topics": "test"
          }
        }
      

      We can override kafka consumer auto offset reset in sink connector;

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                laomei laomei
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: