hpgrahsl / kafka-connect-mongodb

**Unofficial / Community** Kafka Connect MongoDB Sink Connector -> integrated 2019 into the official MongoDB Kafka Connector here: https://www.mongodb.com/kafka-connector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are there any configuration setting to get fullDocument Json only?

San13 opened this issue · comments

commented

I use mongo-kafka source connector to produce Mongo Collection to Kafka topic. The following is the data I received in my consumer.

{"schema":{"type":"string","optional":false},"payload":"{"_id": {"_id": {"$oid": "5e4263864fff6b0e591f093b"}, "copyingData": true}, "operationType": "insert", "ns": {"db": "test", "coll": "Device"}, "documentKey": {"_id": {"$oid": "5e4263864fff6b0e591f093b"}}, "fullDocument": {"_id": {"$oid": "5e4263864fff6b0e591f093b"}, "companyID": "0", "companyName": "", "blePreSharedKey": "0", "isDecommission": false, "deployDT": {"$date": 1581409158080}, "deployBy": "", "status": "", "latitude": 0.0, "longitude": 0.0, "locationDescription": "", "productID": "0", "productName": "", "offlineInterval": 0, "createDT": {"$date": 1581409158078}, "deviceUser": "", "deviceAssigned": false, "endPoint": "test9", "nodeMacAddr": "", "_class": "test"}}"}

Is the source connector possible to produce "fullDocument" data only to kafka topic?
Thanks

commented

I changed in connector configuration.

key.converter.schemas.enable=false
value.converter.schemas.enable=false