A few days ago on the WSL set the stage kafka cluster, today would like to play with by kafka-client, according to the online tutorial to discover how little problem.
When sending a message of error.
Kafka API: java.io.IOException: Can't resolve address: xxx.x.x.xx:9091
Obviously, Rom chant so it is easy to think, is not what we wrote in the above configuration there is a problem I wrote localhost:? 9091
This should refer to the localhost 127.0.0.1, but did not point to WSL. So we see with ifconfig ip command inside the WSL
inet 192.168.0.9
With cmd command line can be found at ping ping success
Then change the configuration of localhost this should be is not a problem, the company returned to try again tomorrow.