Skip to content

Can't connect to brocker with examples consumer/producer #4707

Answered by JiriNovakCSSoft
jchapon asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, I am struggling with same issue right now. I have compiled librdkafka 2.4.0 on my AIX 7.2 and rdkafka_example gives me the same error:

librdkafka-2.4.0/examples> ./rdkafka_example -P -t aix_topic -b kafka:9092

1716205391.433 RDKAFKA-3-FAIL: rdkafka#producer-1: [thrd:kafka:9092/bootstrap]: kafka:9092/bootstrap: Receive failed: Error 0 (after 0ms in state UP)
1716205391.433 RDKAFKA-3-ERROR: rdkafka#producer-1: [thrd:kafka:9092/bootstrap]: 1/1 brokers are down

After some debugging, I have found out, that AIX has the same issue with errno setting like SUN. AIX "me too" section below fixed it.

src/rdkafka_transport.c

#ifdef __sun
        /* SunOS doesn't seem to set errno when recvmsg() fa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jchapon
Comment options

Answer selected by jchapon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants