kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kaufman Ng <kauf...@confluent.io>
Subject Re: Kafka brokers listen on multiple ports
Date Sat, 19 May 2018 20:05:13 GMT
Yes you can. Since you are gonna have 2 plaintext ports you would need to
name them differently. In the broker's configuration (server.properties)
you would need to specify listeners like this:


And map the "PLAINTEXT1" and "PLAINTEXT2" to the PLAINTEXT protocol:


One additional config is you would have to specify the default listener
between brokers:


Notice here I am using "PLAINTEXT1" rather than the default "PLAINTEXT"
listener name. If you keep the default "PLAINTEXT" listener name you would
NOT need to override inter.broker.listener.name like above.

More details are in this KIP:

Hope this helps.

On Fri, May 18, 2018 at 7:01 AM, Dan Gal <dan7gal@gmail.com> wrote:

> Hello!
> I have a few kafka clusters that communicate over 2 distinct ports (because
> of a firewall between the newer clusters and the old ones). this is pretty
> uncomfortable, so I would like to move the old default port to the new one
> (that passes the firewall) through all my cluster.
> All my clusters currently run kafka version
> For the deployment to pass silently, I thought to add the new port
> alongside the old one in the older clusters for a transition period.
> Is it possible to use 2 different ports for the same protocol (PLAINTEXT)
> in the broker configuration? Can I simply put 2 connection strings in the
> *listeners* config?
> Thank you!
> Dan

Kaufman Ng
+1 646 961 8063
Solutions Architect | Confluent | www.confluent.io

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message