conduktor / kafka-stack-docker-compose

docker compose files to create a fully working kafka stack
Apache License 2.0
3.24k stars 1.25k forks source link

Support to run the docker-compose of Kafka in Windows 10/11 #132

Closed hungngomobile closed 5 months ago

hungngomobile commented 1 year ago
  1. Prepared running environment:

    • My Laptop got 2 network cards: Wifi and Wire.The wifi card is on and connect to internet with IP: 192.168.1.2
    • In file c:\Windows\System32\drivers\etc\hosts, add a line as: 192.168.1.2 host.docker.internal
    • At PowerShell Command Line of Windows 11: Set environment variable by command line: $env:DOCKER_HOST_IP='192.168.1.2'
    • Beside that my laptop has installed the Hyper-V.
  2. Run command: docker-compose -f .\zk-multiple-kafka-multiple.yml up -d

Error logs:

[2023-05-30 12:46:27,897] INFO SASL config status: Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) [2023-05-30 12:46:27,922] INFO Socket connection established, initiating session, client: /172.18.0.5:47488, server: zoo3/172.18.0.2:2183 (org.apache.zookeeper.ClientCnxn) [2023-05-30 12:46:27,983] WARN Session 0x0 for sever zoo3/172.18.0.2:2183, Closing socket connection. Attempting reconnect except it is a SessionExpiredException. (org.apache.zookeeper.ClientCnxn) EndOfStreamException: Unable to read additional data from server sessionid 0x0, likely server has closed socket at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:77) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1290) [2023-05-30 12:46:28,730] INFO Opening socket connection to server zoo2/172.18.0.4:2182. (org.apache.zookeeper.ClientCnxn) [2023-05-30 12:46:28,730] INFO SASL config status: Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) [2023-05-30 12:46:28,732] INFO Socket connection established, initiating session, client: /172.18.0.5:35198, server: zoo2/172.18.0.4:2182 (org.apache.zookeeper.ClientCnxn) [2023-05-30 12:46:28,756] INFO Session establishment complete on server zoo2/172.18.0.4:2182, session id = 0x20002a3d6a20000, negotiated timeout = 40000 (org.apache.zookeeper.ClientCnxn) [2023-05-30 12:46:28,771] WARN An exception was thrown while closing send thread for session 0x20002a3d6a20000. (org.apache.zookeeper.ClientCnxn) EndOfStreamException: Unable to read additional data from server sessionid 0x20002a3d6a20000, likely server has closed socket at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:77) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1290) [2023-05-30 12:46:28,873] INFO Session: 0x20002a3d6a20000 closed (org.apache.zookeeper.ZooKeeper) [2023-05-30 12:46:28,873] INFO EventThread shut down for session: 0x20002a3d6a20000 (org.apache.zookeeper.ClientCnxn)

OneCricketeer commented 1 year ago

Windows isn't the issue. Your Third Zookeeper container isn't starting, and you've not provided logs for it.

Keep in mind that running the multiple-multiple file will ultimately be slower than the single-single file as you'd be needlessly replicating data on the same machine

Please reach out Confluent instead if you need support running their images