You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/03/19 03:09:31 UTC

[GitHub] [camel-kafka-connector] yingbo-wu opened a new issue #1113: The camel-mongodb-connector produce message format error

yingbo-wu opened a new issue #1113:
URL: https://github.com/apache/camel-kafka-connector/issues/1113


   The “camel.source.endpoint.consumerType” is changeStreams
   ```
   {
       ......
       "camel.source.endpoint.consumerType": "changeStreams",
       ......
   }
   ```
   
   The kafka topic message format is:
   Document{{_id=6054153bb0c98c76191cd377, sfdc_id=a0L2x000001GjBgEAK, field_3=Fri Mar 05 00:00:00 GMT 2021, field_1=123, field_2=123}}
   
   The format is that the "Document" object toString() returns something
   Such a data format cannot be used downstream


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] yingbo-wu commented on issue #1113: The camel-mongodb-connector produce message format error

Posted by GitBox <gi...@apache.org>.
yingbo-wu commented on issue #1113:
URL: https://github.com/apache/camel-kafka-connector/issues/1113#issuecomment-802511584


   "value.converter": "org.apache.kafka.connect.storage.StringConverter"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] yingbo-wu commented on issue #1113: The camel-mongodb-connector produce message format error

Posted by GitBox <gi...@apache.org>.
yingbo-wu commented on issue #1113:
URL: https://github.com/apache/camel-kafka-connector/issues/1113#issuecomment-802512675


   My solution is
   ```
   "value.converter": "org.apache.kafka.connect.json.JsonConverter",
   "camel.source.marshal": "org.apache.camel.component.gson.GsonDataFormat",
   ```
   But, The official example is "value.converter": "org.apache.kafka.connect.storage.StringConverter"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] oscerd closed issue #1113: camel-mongodb-kafka-connector produce message format error

Posted by GitBox <gi...@apache.org>.
oscerd closed issue #1113:
URL: https://github.com/apache/camel-kafka-connector/issues/1113


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] oscerd commented on issue #1113: camel-mongodb-kafka-connector produce message format error

Posted by GitBox <gi...@apache.org>.
oscerd commented on issue #1113:
URL: https://github.com/apache/camel-kafka-connector/issues/1113#issuecomment-802574259


   The pojo returned is always Document. You can transform it in json by unmarshalling it with json-jackson dataformat which is provided out of the box and by default in all the connectors. Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org