Tuesday, October 10, 2023

Apache Kafka Connect

 HOWTO


Check plugin.path


config/connect-standalone.properties

plugin.path=libs/

File connector

$ bin/connect-standalone.sh config/connect-standalone.properties config/connect-file-sink.properties

file connector config
name=local-file-sink
connector.class=FileStreamSink
tasks.max=1
file=test.sink.txt
topics=connect-test
key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter
key.converter.schemas.enable=false
value.converter.schemas.enable=false
JSON connector
name=local-file-sink
connector.class=FileStreamSink
tasks.max=1
file=test.sink.txt
topics=connect-test
key.converter=org.apache.kafka.connect.json.JsonConverter
value.converter=org.apache.kafka.connect.json.JsonConverter
key.converter.schemas.enable=false
value.converter.schemas.enable=false

No comments:

Post a Comment