You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by kamal <ka...@nmsworks.co.in> on 2014/03/14 08:38:14 UTC

how to configure KAFKA behind firewall

Hi all,
I am encountering problem in configuring ports. Am running ZooKeeper and KAFKA in the
same machine. When am starting KAFKA server, it listen to zookeeper with clientPort
2181. But KAFKA creating some other tcp connection with zookeeper.

After enabling trace logs in ZooKeeper,

[2014-03-14 10:21:00,758] INFO Client attempting to establish new session at
/0:0:0:0:0:0:0:1:42660 (org.apache.zookeeper.server.NIOServerCnxn)

In Kafka Server.log
TRACE Finished writing, registering for read on connection /192.168.11.127:57449
(kafka.network.Processor)


In Command line, to find already used ports, I used
"netstat -tupln | grep "ZOOKEEPER_PID"
tcp        0      0 :::49840                    :::*                        LISTEN     
6494/java           
tcp        0      0 :::60226                    :::*                        LISTEN     
6494/java           
tcp        0      0 :::2181                     :::*                        LISTEN     
6494/java 

"netstat -tupln | grep "KAFKA_PID"
tcp        0      0 :::60476                    :::*                        LISTEN     
6519/java           
tcp        0      0 :::54300                    :::*                        LISTEN     
6519/java           
tcp        0      0 :::9092                     :::*                        LISTEN     
6519/java 

I need to configure all ports since we have to run KAFKA and ZooKeeper behind firewall.
Thanks for your time!


Cheers,
Kamal C


--
Open WebMail Project (http://openwebmail.org)


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.