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/06/15 10:05:51 UTC

[GitHub] [camel-kafka-connector] sammy445 commented on issue #1211: Information required on Camel file sink connector configurations

sammy445 commented on issue #1211:
URL: https://github.com/apache/camel-kafka-connector/issues/1211#issuecomment-861368467


   Hi @orpiske ,
   
   Sorry. I couldn't get the answer completely. Headers are present in the Kafka topic for every message. Here is the configuration of a connector that I am using. How do I set the header configuration? I need to have a file name created along with the Kafka offset. So, what's the parameter to get the Kafka offset?
   {
   "name": "camel-file-sink-connector",
   "connector.class": "org.apache.camel.kafkaconnector.file.CamelFileSinkConnector",
   "tasks.max": "1",
   "key.converter": "org.apache.kafka.connect.storage.StringConverter",
   "value.converter": "org.apache.kafka.connect.converters.ByteArrayConverter",
   "topics": "camel-file-sink-kafka-topic",
   "camel.sink.contentLogLevel": "DEBUG",
   "camel.idempotency.enabled": "false",
   "camel.sink.path.directoryName": "/user/app/folder",
   "camel.sink.endpoint.charset": "UTF-8",
   "camel.sink.endpoint.fileName": "messages-${date:now:yyyyMMdd}.txt",,
   "camel.sink.endpoint.forceWrites": "true",
   "camel.sink.endpoint.autoCreate": "true"
   }


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