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

Can't set custom message key

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      I try to use mongo document id as message key. Following this examples https://docs.confluent.io/current/connect/transforms/valuetokey.html#valuetokey i specify settings in MongoSourceConnector.properties but connector raise exception:

       

      Only Struct objects supported for [copying fields from value to key], found: java.lang.String

       

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            industrial.lang@gmail.com Dionis Stepanidis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: