HUB
Sign inSign up

bohunn/kafka-csv-connector

By bohunn

•Updated almost 5 years ago

Image
0

1.7K

bohunn/kafka-csv-connector repository overview

⁠Kafka Connect Sample Connector

This repo contains a sample project that can be used to start off your own source connector for Kafka Connect.

⁠Building the connector

The first thing you need to do to start using this connector is building it. In order to do that, you need to install the following dependencies:

After installing these dependencies, execute the following command:

mvn clean package

⁠Trying the connector

After building the connector you can try it by using the Docker-based installation from this repository.

⁠1 - Starting the environment

Start the environment with the following command:

docker-compose up

Wait until all containers are up so you can start the testing.

⁠2 - Install the connector

Open a terminal to execute the following command:

curl -X POST -H "Content-Type:application/json" -d @examples/basic-example.json http://localhost:8083/connectors
⁠4 - Check the data in Kafka

Open a terminal to execute the following command:

docker exec kafka kafka-console-consumer --bootstrap-server kafka:9092 --topic source-1 --from-beginning

⁠License

This project is licensed under the Apache 2.0 License⁠.

Tag summary
Recent tags
Content type
Image
Digest
Size
830.1 MB
Last updated
almost 5 years ago
docker pull bohunn/kafka-csv-connector:latest