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:
[email protected]