Are there any configuration setting to get fullDocument Json only?
San13 opened this issue · comments
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
I changed in connector configuration.
key.converter.schemas.enable=false
value.converter.schemas.enable=false