Welcome to your new Kafka Connect connector!
Generate a connector (Source Kafka Connector)
- JDK version 1.8
- Generate new project with IntelliJ IDEA with Maven Archetype.
- Configure:
- GroupID= io.confluent.maven
- ArtifactID: kafka-connect-quickstart
- Version: 0.10.2.1-cp1
mvn clean package
mvn assembly:single # check pom.xml for assembly & jar package
- Export classpath:
Export CLASSPATH="$(find target -type f -name '*.jar'| grep '\-package' | tr '\n'':')"
- Build the Dockerfile:
docker built . -t quangtn/kafka-connect-source-github:1.0
- Run the docker:
docker run -e CLASSPATH=$CLASSPATH --net=host --rm -t -v $(pwd)/offsets:/kafka-connect-source-github/offsets quangtn/kafka-connect-source-github:1.0
For sink connector (custom), I wil update it in another project. Besides, sink connector can be used with Elasticsearch or Database.
Kafka Connector architecture
Kafka Connect Cluster Distributed Architecture
Data Pipeline