You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Nanda Naga <na...@microsoft.com.INVALID> on 2022/08/01 17:42:26 UTC

Query regarind iPv6 setup and produce using ipv6 listener

Hi,

I am working on to enable ipv6 support for my kafka setup.

I have added IPV6 listener (plaintext) and I see no issues in kafka server log.

Listener config in my sever properties (real Ipv4 marked with X and ipv6 marked with Y)

listeners=PLAINTEXT://0.0.0.0:9092,SSL://0.0.0.0:9093,SASL_SSL://0.0.0.0:9095,PLAINTEXTV6://[::1]:9044
advertised.listeners=PLAINTEXT://X.X.X.X:9092,SSL:// X.X.X.X:9093,SASL_SSL:// X.X.X.X:9095,PLAINTEXTV6://[Y:Y:Y:Y:Y:Y:Y:Y]:9044
listener.security.protocol.map=PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_SSL:SASL_SSL,PLAINTEXTV6:PLAINTEXT

I tried to produce messages using the IPV6 listener but I see no messages getting in (it works with ipv4 listener though).

Message tried to send via console producer (kafka-console-producer.bat --broker-list [Y:Y:Y:Y:Y:Y:Y:Y]:9044 --topic TopicWithPart)

It is trying to produce but not successful. Any help in this regard or how to check what would be the issue?

------ Produce message console window below while stopping the session during send (for opv4 listener it sends immediately but for IPv6 it tries to send for some time and comes out without any error and message not sent as well)
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
>tes
org.apache.kafka.common.KafkaException: Producer closed while send in progress
        at org.apache.kafka.clients.producer.KafkaProducer.doSend(KafkaProducer.java:894)Terminate batch job (Y/N)?

Regards,
Nanda