Skip to content
Ryan CrawCour edited this page Apr 23, 2020 · 19 revisions

Welcome to the kafka-connect-cosmosdb wiki!

Cosmos DB samples -

End-to-end sample (not finished yet but here is the repo, I'll tag a v3 and v4 version): https://github.com/Azure-Samples/azure-cosmos-java-sql-api-end-to-end-sample

Migration guide: https://github.com/Azure-Samples/azure-cosmos-java-sql-api-samples/blob/master/migration-guide.md

Reactor vs RxJava: https://github.com/Azure-Samples/azure-cosmos-java-sql-api-samples/blob/master/reactor-rxjava-guide.md

Reactor Pattern Guide: https://github.com/Azure-Samples/azure-cosmos-java-sql-api-samples/blob/master/reactor-pattern-guide.md

Basic samples: https://github.com/Azure-Samples/azure-cosmos-java-sql-api-samples

Kafka

Setting up Kafka and Kafka Connect dev environments

use the cp-all-in-one-community docker compose file. This Docker Compose file launches only the community services in Confluent Platform, and runs them in containers in your local host.

if you prefer a "more realistic" environment where zookeeper and kafka servers are distinct from each other then the docker compose files on kafka-stack-docker-compose are worth looking in to.

single zookeeper & single kafka should be sufficient.

"-._,-'"-.,-'"-._,-'"-.,-'"-._,-'"-.,-'"-._,-'"-.,-'"`-._,- An important note about accessing Kafka from clients on other machines:

The config used here exposes port 9092 for external connections to the broker i.e. those from outside the docker network. This could be from the host machine running docker, or maybe further afield if you've got a more complicated setup. If the latter is true, you will need to change the value 'localhost' in KAFKA_ADVERTISED_LISTENERS to one that is resolvable to the docker host from those remote clients

For connections internal to the docker network, such as from other services and components, use kafka:29092.

See https://rmoff.net/2018/08/02/kafka-listeners-explained/ for details "-._,-'"-.,-'"-._,-'"-.,-'"-._,-'"-.,-'"-._,-'"-.,-'"`-._,-

Clone this wiki locally