Handy way to run kafka connect.
At host, mkdir /data/kafka/connectors make sub directory libs and put our custom connectors jars in host directory: /data/kafka/connectors/libs Put connector config in /data/kafka/connectors
copy the connect-distributed.properties to worker.properties and put it in /data/kafka/connectors this will be the worker property file, append kafaka-mongodb-sink.properties
$ docker run --name kafka-file-sink -p 8083:8083 -v /data/kafka-mongodb-sink:/opt/kafka_2.12-2.2.0/connectors -e job=connect-file-sink dbface/kafka-connect
this will startup kafka-mongodb-sink.properties as the JOB file
Edit the worker.properties file in docker host(/data/kafka/connectors/worker.properties)
Other connect configuration fields are optional. (see also Kafka Connect Configs)
Content type
Image
Digest
Size
126.8 MB
Last updated
over 7 years ago
docker pull dbface/kafka-connect