Closed galegofer closed 2 years ago
Thank you for collaborating with the project by giving us feedback!!' You will help us a lot if you can attach an example AVRO and an example Test Plan in order to be able to reproduce the error, if that is the case. Cheers
Hi @galegofer,
I investigated your problem and I'm sorry to tell you that docker hasn't access to name service of the local computer. For solving this, there are two options: You can use extern services or add the name to the host file on your computer. I recommend you the second, so:
Hi @irodigl ,
I was trying the opposite broker! 127.0.0.1, I just inverted it, as you said, and voila!
Thanks a lot!
What happened?
Not sure, if it is an actual KLoadGen issue, but I have a docker-compose file where I startup all the containers including my Kafka broker and schema-registry.
the hostname for the Kafka container is a broker and it is at port 29092
But I am getting a when executing the test plan:
2022-05-12 15:18:14,068 WARN o.a.k.c.NetworkClient: [Producer clientId=] Error connecting to node broker:29092 (id: 1 rack: null) java.net.UnknownHostException: broker at java.net.InetAddress$CachedAddresses.get(InetAddress.java:797) ~[?:?] at java.net.InetAddress.getAllByName0(InetAddress.java:1505) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1364) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1298) ~[?:?] at org.apache.kafka.clients.DefaultHostResolver.resolve(DefaultHostResolver.java:27) ~[kloadgen-4.3.0.jar:?] at org.apache.kafka.clients.ClientUtils.resolve(ClientUtils.java:110) ~[kloadgen-4.3.0.jar:?]
When I am trying to access from the browser with broker:29092, it seems to be fine.
docker-compose config:
broker: image: confluentinc/cp-kafka:6.2.0 hostname: broker container_name: broker depends_on:
TestPlan:
`<?xml version="1.0" encoding="UTF-8"?>
`
KloadGen Version
KloadGn 4.3.0.7
Relevant log output
Have you added your JMX Testplan or a replica?
Have you added your Schema or a replica?