Confluent Platform docker image with community components featuring source and sink connectors for MongoDB and Snowflake.
Docker Hub: https://hub.docker.com/repository/docker/marcin2x4/confluent_mongo_snowflake
To interact and test this solution:
- Run
docker-compose up -d
once in the file directory - Double check
docker-compose ps
- Log in to the Connect (
localhost:9021
) and navigate toCluster -> Connect -> connect-default
and establish connections to MongoDB (https://www.youtube.com/watch?v=_6NuTTQdDn4) and Snowflake (https://docs.confluent.io/cloud/current/connectors/cc-snowflake-sink.html). You can also save both intojson
files and upload to save time. - Log in to
broker
usingdocker-compose exec broker bash
- To monitor created topic execute
kafka-console-consumer --topic <TOPIC_NAME> --bootstrap-server broker:9092
and start inserting data to MongoDB's collection. If properly set, log shloud be seen in your terminal. Data should also get inserted into Snowflake - To release resources run:
docker container stop $(docker container ls -a -q -f "label=io.confluent.docker")
docker system prune -a -f --volumes