Starofall / RTX

Realtime experiment framework for self-adaptions in a big data environment
MIT License
3 stars 7 forks source link

Connection to kafka failed #3

Open Ckkk112138 opened 2 years ago

Ckkk112138 commented 2 years ago

I was trying to run the experiments using RTX but it kept showing "Error: connection to kafka failed". I am using the kafka through Docker. problem

Starofall commented 2 years ago

If you are using Kafka through Docker on Windows, kafak ist bound to localhost. So it is not able to connect to it through the domain "kafka".

You can either change the configuration file to link to "localhost:9092" instead of "kafka:9092" OR create a local dns mapping in your Windows hosts file that assigns kafka to 127.0.0.1