saachinsiva edited a comment on issue #1224:
URL: 
https://github.com/apache/camel-kafka-connector/issues/1224#issuecomment-869820997


   @oscerd 
   
   I tried using marshal but I still set the value as bytes in the topic. Also 
Can you please let me know which SMT to use to get the header value.
   
   ```
   {
       "connector.class": 
"org.apache.camel.kafkaconnector.aws2s3.CamelAws2s3SourceConnector",
       "tasks.max": "1",
       "topics": "local.ssl.test",
       "key.converter": "org.apache.kafka.connect.storage.StringConverter",
       "value.converter": "org.apache.kafka.connect.json.JsonConverter",
       "value.converter.schemas.enable":"false",
       "camel.source.path.bucketNameOrArn": "test-bucket",
       "camel.component.aws2-s3.includeBody": true,
       "camel.component.aws2-s3.delimiter": "/",
       "camel.component.aws2-s3.prefix": "local/",
       "camel.source.endpoint.useDefaultCredentialsProvider": true,
       "camel.source.endpoint.autocloseBody": true,
       "camel.source.marshal":"json-jackson"
   }
   ```
   
   Ouptut (using AKHQ):
   
   
![image](https://user-images.githubusercontent.com/7923274/123667853-8bb27b00-d808-11eb-883a-73ebf4ab67f1.png)
   
   
   However if I use byte array converter without marshal then I see as below 
but ofcourse I cannot use SMT to parse field
   ```
   {
       "connector.class": 
"org.apache.camel.kafkaconnector.aws2s3.CamelAws2s3SourceConnector",
       "tasks.max": "1",
       "topics": "local.ssl.test",
       "key.converter": "org.apache.kafka.connect.storage.StringConverter",
       "value.converter": 
"org.apache.kafka.connect.converters.ByteArrayConverter",
       "camel.source.path.bucketNameOrArn": "test-bucket",
       "camel.component.aws2-s3.includeBody": true,
       "camel.component.aws2-s3.delimiter": "/",
       "camel.component.aws2-s3.prefix": "local/",
       "camel.source.endpoint.useDefaultCredentialsProvider": true,
       "camel.source.endpoint.autocloseBody": true
   }
   ```
   
   
![image](https://user-images.githubusercontent.com/7923274/123669807-7c343180-d80a-11eb-86a7-d25398de0bda.png)
   
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

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


Reply via email to