custom header with MongoDB Source Connector

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi Team,

      I am trying to add a custom header using following config but as mentioned that property not belong to managed connector.

      Please can you suggest how can we add a custom header.

       
      "transforms":"moveValueFieldsToHeader",
      "transforms.moveValueFieldsToHeader.type":"org.apache.kafka.connect.transforms.HeaderFrom$Value",
      "transforms.moveValueFieldsToHeader.fields":"correlationId",
      "transforms.moveValueFieldsToHeader.headers":"x-correlationId-id",
      "transforms.moveValueFieldsToHeader.operation":"move",

            Assignee:
            Robert Walters (Inactive)
            Reporter:
            Harish Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: