KxSystems / kafka

kdb+ to Apache Kafka adapter, for pub/sub
https://code.kx.com/q/interfaces
Apache License 2.0
48 stars 29 forks source link

Running docker test env with Confluent docker quickstart #38

Open sshanks-kx opened 4 years ago

sshanks-kx commented 4 years ago

When using this env https://docs.confluent.io/current/quickstart/ce-docker-quickstart.html

Add doc to detail how to get a kdb q instance to talk to the above env (given that the above is setup to communicate with each other inside the env)

sshanks-kx commented 4 years ago

Run the above env. After start-up, can run

docker network ls
docker network inspect cp-all-in-one_default

to see the new network configured & hosts running within it

When running a separate docker image containing kdb/Kafka libs, in order to talk to the above network add the following to your docker run cmd --network cp-all-in-one_default That your container within the same network so it can talk to the hosts with broker/zookeeper/etc.

Then your docker image needs to use broker:29092 as the broker to connect to.

NOTE: when running your own docker container, if you need to open another shell to it, can run the likes of ... docker exec -it <docker container name> /bin/bash