Skip to content

Development environment and template project for creating simple Kafka Connect connectors

License

Notifications You must be signed in to change notification settings

dalelane/kafka-connect-developers-intro-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-connect-dev-tutorial

Skeleton project to help a Java developer create their first Kafka Connect connector.

Video walkthrough of how to use this can be found at https://dalelane.co.uk/blog/?p=5052

Setup a dev environment

./00-check-prereqs.sh

Checks you have Java and Maven needed for the rest of the instructions

./01-download-kafka.sh

Downloads and unzips Kafka.

./02-run-kafka.sh

Try an existing connector

./03-consume-file-topic.sh

Start listening to the topic

./04-run-file-connector.sh

Run the source connector that puts the contents of input-file.txt to the Kafka topic.

See the file contents show up in the 03-consume-file-topic.sh output.

Add additional lines to the file to confirm the connector is still running.

Run a custom sink connector

./05-build-connectors.sh

Compile the custom connector.

Edit sink-connector.properties with an API key and channel ID from Slack

./06-run-sink-connector.sh

Run the connector.

./07-produce-my-topic.sh

Produce messages to the Kafka topic.

See the messages show up in your Slack channel.

Run a custom source connector

./05-build-connectors.sh

Compile the custom connector.

Edit source-connector.properties with an API key from weatherapi.com

./08-consume-my-topic.sh

Start listening to the topic

./09-run-source-connector.sh

Run the connector.

See weather events show up on the Kafka topic.

About

Development environment and template project for creating simple Kafka Connect connectors

Topics

Resources

License

Stars

Watchers

Forks