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

Invalid value in config of output.schema.key

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.6.1
    • Component/s: None

      I got an error when I execute this command, can anyone help me?

      curl -X POST \
      --url http://localhost:8083/connectors \
      -H "Content-Type: application/json" \
      --data '
      {
       "name": "zbcde",
       "config": {
       "connector.class": "com.mongodb.kafka.connect.MongoSourceConnector",
       "connection.uri": "mongodb://localhost:27017/?authSource=admin",
       "database": "test",
       "collection": "test_kafka",
       "copy.existing" :"true",
       "publish.full.document.only":"true",
       "change.stream.full.document":"updateLookup",
       "output.format.key":"schema",
       "output.schema.key":"{\"name\":\"keySchema\",\"type\":\"record\",\"fields\":[{\"name\": \"fullDocument\",\"type\": \"record\",\"fields\":[ { \"name\": \"a\", \"type\": \"string\" },{ \"name\": \"b\", \"type\": \"string\" },{ \"name\": \"c\", \"type\": \"string\" }]}]}",
       "output.json.formatter":"com.mongodb.kafka.connect.source.json.formatter.SimplifiedJson"
       }
      }'

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            zhoujiazhiwork@163.com jiazhi zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: