Skip to content

Latest commit

 

History

208 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose files for Confluent Platform

Quick Start

cd confluent-dockerfiles/connect-cluster/classic-with-replicator
docker system prune -f && docker-compose up

Wait for startup

watch -d curl localhost:8083

Confirm the Connect Cluster is available

curl localhost:8083 | jq

Confirm the ReplicatorSourceConnector is a listed Connector Plugin

curl localhost:8083/connector-plugins | jq

Retrieve the Cluster information (and id) using ReST Proxy

curl localhost:8082/v3/clusters | jq

Create the replicator topic using ReST Proxy

curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" \
          --data '{"topic_name": "replicate-me", "partitions_count": 4, "replication_factor": 1}' \
          "http://localhost:8082/v3/clusters/<cluster-id>/topics" | jq

Create the replicator

./replicator.sh

Get the status of the replicator

curl localhost:8083/connectors/replicator/status | jq

Start Producing to the topic

docker-compose exec kafka /usr/bin/kafka-console-producer --broker-list kafka:29092 --topic replicate-me

Open Confluent Control Centre http:hostname:9021

Troubleshooting

Connect to the First Kafka Connect instance

docker-compose exec connect1 bash

Delete the replicator

curl -X DELETE connect1:8083/connectors/replicator

About

A repository for my docker components

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages