-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error message while using rdkafka_example_cpp #53
Comments
Connection refused means librdkafka can't TCP connect to a given broker. Check your connectivity (you can use |
I've opened port 9092: 9100 on the firewall I think the broker will automatically run when I run rdkafka_example_cpp, because the address localhost: 9092 is the default address for the broker. Or maybe I missed some steps. if there are steps that must be done before running rdkafka_example_cpp, to run the broker for example? |
Please dont duplicate each comment to two issues, lets keep discussion here. You will need to start your Kafka cluster first before starting your clients. When that is started you should be able to connect a client to it. |
oh, sorry, that was my mistake. I'm really beginner in using github. I did not see the title of the topic when I replied. Actually I've made a cluster as in kafka #quickstart.
then, I can make producers and consumers and also send a message through original kafka-console-producer.sh & kafka-console-consumer.sh as on kafka #quickstart, but when using rdkafka_example_cpp : examples/rdkafka_example_cpp -P -t test -p 1 -b localhost:9092 I get the following error: % Created producer-producer rdkafka # 0 did i miss something ? |
Never seen that error before, thats inside the libc resolver. Weird. What operating system are you using? Can you run the program in gdb and provide a |
i am using openSUSE 11.3. Here is an output when run using gdb mode: (gdb) run -P -t test -p 1 -b localhost:9092 Program received signal SIGABRT, Aborted. |
Can you provide the output |
here is the full backtrace :
|
This seems to be a glibc bug: |
Hi, i new in kafka, after I installed librdkafka, then run an example file, i have the some issues when using its. When using rdkafka_example_cpp to set up producer:
rdkafka_example_cpp -P -t my_topic -p 1 -b 127.0.0.1:9092
i got these outputs:
% Created producer rdkafka#producer-0
LOG-3-FAIL: 127.0.0.1:9091/bootstrap: Failed to connect to broker at new-host:9091: Connection refused
and when using rdkafka_example_cpp to set up consumer:
rdkafka_example_cpp -C -t my_topic -p 3 -b 127.0.0.1:9093
a got this these outputs :
% Created consumer rdkafka#consumer-0
LOG-3-FAIL: 127.0.0.1:9093/bootstrap: Failed to connect to broker at new-host:9093: Connection refused
ERROR (Local: Broker transport failure): 127.0.0.1:9093/bootstrap: Failed to connect to broker at new-host:9093: Connection refused
ERROR (Local: All broker connections are down): 1/1 brokers are down
after I was looking at the same problem here, I get an explanation that the problem is caused by the use of ipv4 or ipv6. I've checked the IP version used, and I think my problem does not lie there.is there any suggestion, what's wrong with above command? Thx.
The text was updated successfully, but these errors were encountered: