Quantcast
Channel: DevOps tips & tricks
Viewing all articles
Browse latest Browse all 181

Apache Kafka Connect

$
0
0

 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

Viewing all articles
Browse latest Browse all 181

Trending Articles