This repo contains a sample project that can be used to start off your own source connector for Kafka Connect.
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
After building the connector you can try it by using the Docker-based installation from this repository.
Start the environment with the following command:
docker-compose up
Wait until all containers are up so you can start the testing.
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
Open a terminal to execute the following command:
docker exec kafka kafka-console-consumer --bootstrap-server kafka:9092 --topic source-1 --from-beginning
This project is licensed under the Apache 2.0 License.
docker pull bohunn/kafka-csv-connector:latest