You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Mazhar Shaikh <ma...@gmail.com> on 2016/08/31 10:36:24 UTC

zookeeper 3.4.6 listening on unknown random port

Hi All,

Im running a 3 zookeeper  process and noticed all 3 zookeeper process is
listening on one unknown random port.

Can someone please help me to understand why is this port used for ?

This port not handling any connections and all the 3 zookeeper has
different port number.

Node1 -> has 1 zookeeper (z1)
node2 -> has 2 zookeeper (z3 & z3)

server.1=z1.zookeeper.com:2888:3888
server.2=z2.zookeeper.com:2888:3888
server.3=z3.zookeeper.com:2889:3889

****************** Node1 - z1 *********************
Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
Clients:
 /192.168.2.116:53028[1](queued=0,recved=173,sent=173)
 /192.168.2.27:38375[1](queued=0,recved=175,sent=175)
 /192.168.2.28:42044[1](queued=0,recved=161,sent=161)
 /192.168.2.116:55142[0](queued=0,recved=1,sent=0)
 /192.168.2.216:50024[1](queued=0,recved=176,sent=176)

Latency min/avg/max: 0/149/14357
Received: 1765
Sent: 1753
Connections: 5
Outstanding: 0
Zxid: 0x1000016b8
Mode: follower
Node count: 216

****************** Node2 - z2 *********************
Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
Clients:
 /192.168.2.17:45103[1](queued=0,recved=195,sent=195)
 /192.168.2.18:38099[1](queued=0,recved=176,sent=176)
 /192.168.2.116:60666[0](queued=0,recved=1,sent=0)

Latency min/avg/max: 0/308/21523
Received: 9680
Sent: 9499
Connections: 3
Outstanding: 0
Zxid: 0x1000016b8
Mode: leader
Node count: 216

****************** Node2 - z3 *********************
Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
Clients:
 /192.168.2.116:47141[0](queued=0,recved=1,sent=0)

Latency min/avg/max: 0/0/0
Received: 13
Sent: 12
Connections: 1
Outstanding: 0
Zxid: 0x1000016b8
Mode: follower
Node count: 216

***************************************

z1 - ports
# netstat -anp | grep 15643 | grep LISTEN
tcp6       0      0 :::36895                :::*
LISTEN      15643/java
tcp6       0      0 :::2181                 :::*
LISTEN      15643/java
tcp6       0      0 169.254.2.116:3888      :::*
LISTEN      15643/java


z2 - ports
# netstat -anp | grep 21235 | grep LISTEN
tcp6       0      0 :::2181                 :::*
LISTEN      21235/java
tcp6       0      0 :::40037                :::*
LISTEN      21235/java
tcp6       0      0 169.254.2.216:2888      :::*
LISTEN      21235/java
tcp6       0      0 169.254.2.216:3888      :::*
LISTEN      21235/java

z3 - ports
 <Perf_VSEPx SYS_CTRLI1> root@sysctrl2:~# netstat -anp | grep 40497 | grep
LISTEN
tcp6       0      0 :::2182                 :::*
LISTEN      40497/java
tcp6       0      0 169.254.2.1:3889        :::*
LISTEN      40497/java
tcp6       0      0 :::42455                :::*
LISTEN      40497/java


Here "z1,z2,z3" are listening on "36895, 40037 & 42455" port respectively
which has not been configured.

Thanks.

Regards,
Mazhar Shaikh.

Re: zookeeper 3.4.6 listening on unknown random port

Posted by Mazhar Shaikh <ma...@gmail.com>.
Hi Rakesh,

No, I haven't configured any JMX port for zookeeper.
may be it's jmx remote monitoring port.

Thank you.

Regards,
Mazhar Shaikh.


On Wed, Aug 31, 2016 at 4:55 PM, Rakesh Radhakrishnan <ra...@apache.org>
wrote:

> Hi Mazhar,
>
> I doubt the possibility of jmx remote monitoring random port. Did you
> configure environment variable JMXPORT to avoid random port ?
>
> Rakesh
>
> On Wed, Aug 31, 2016 at 4:06 PM, Mazhar Shaikh <mazhar.shaikh.in@gmail.com
> >
> wrote:
>
> > Hi All,
> >
> > Im running a 3 zookeeper  process and noticed all 3 zookeeper process is
> > listening on one unknown random port.
> >
> > Can someone please help me to understand why is this port used for ?
> >
> > This port not handling any connections and all the 3 zookeeper has
> > different port number.
> >
> > Node1 -> has 1 zookeeper (z1)
> > node2 -> has 2 zookeeper (z3 & z3)
> >
> > server.1=z1.zookeeper.com:2888:3888
> > server.2=z2.zookeeper.com:2888:3888
> > server.3=z3.zookeeper.com:2889:3889
> >
> > ****************** Node1 - z1 *********************
> > Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
> > Clients:
> >  /192.168.2.116:53028[1](queued=0,recved=173,sent=173)
> >  /192.168.2.27:38375[1](queued=0,recved=175,sent=175)
> >  /192.168.2.28:42044[1](queued=0,recved=161,sent=161)
> >  /192.168.2.116:55142[0](queued=0,recved=1,sent=0)
> >  /192.168.2.216:50024[1](queued=0,recved=176,sent=176)
> >
> > Latency min/avg/max: 0/149/14357
> > Received: 1765
> > Sent: 1753
> > Connections: 5
> > Outstanding: 0
> > Zxid: 0x1000016b8
> > Mode: follower
> > Node count: 216
> >
> > ****************** Node2 - z2 *********************
> > Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
> > Clients:
> >  /192.168.2.17:45103[1](queued=0,recved=195,sent=195)
> >  /192.168.2.18:38099[1](queued=0,recved=176,sent=176)
> >  /192.168.2.116:60666[0](queued=0,recved=1,sent=0)
> >
> > Latency min/avg/max: 0/308/21523
> > Received: 9680
> > Sent: 9499
> > Connections: 3
> > Outstanding: 0
> > Zxid: 0x1000016b8
> > Mode: leader
> > Node count: 216
> >
> > ****************** Node2 - z3 *********************
> > Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
> > Clients:
> >  /192.168.2.116:47141[0](queued=0,recved=1,sent=0)
> >
> > Latency min/avg/max: 0/0/0
> > Received: 13
> > Sent: 12
> > Connections: 1
> > Outstanding: 0
> > Zxid: 0x1000016b8
> > Mode: follower
> > Node count: 216
> >
> > ***************************************
> >
> > z1 - ports
> > # netstat -anp | grep 15643 | grep LISTEN
> > tcp6       0      0 :::36895                :::*
> > LISTEN      15643/java
> > tcp6       0      0 :::2181                 :::*
> > LISTEN      15643/java
> > tcp6       0      0 169.254.2.116:3888      :::*
> > LISTEN      15643/java
> >
> >
> > z2 - ports
> > # netstat -anp | grep 21235 | grep LISTEN
> > tcp6       0      0 :::2181                 :::*
> > LISTEN      21235/java
> > tcp6       0      0 :::40037                :::*
> > LISTEN      21235/java
> > tcp6       0      0 169.254.2.216:2888      :::*
> > LISTEN      21235/java
> > tcp6       0      0 169.254.2.216:3888      :::*
> > LISTEN      21235/java
> >
> > z3 - ports
> >  <Perf_VSEPx SYS_CTRLI1> root@sysctrl2:~# netstat -anp | grep 40497 |
> grep
> > LISTEN
> > tcp6       0      0 :::2182                 :::*
> > LISTEN      40497/java
> > tcp6       0      0 169.254.2.1:3889        :::*
> > LISTEN      40497/java
> > tcp6       0      0 :::42455                :::*
> > LISTEN      40497/java
> >
> >
> > Here "z1,z2,z3" are listening on "36895, 40037 & 42455" port respectively
> > which has not been configured.
> >
> > Thanks.
> >
> > Regards,
> > Mazhar Shaikh.
> >
>

Re: zookeeper 3.4.6 listening on unknown random port

Posted by Rakesh Radhakrishnan <ra...@apache.org>.
Hi Mazhar,

I doubt the possibility of jmx remote monitoring random port. Did you
configure environment variable JMXPORT to avoid random port ?

Rakesh

On Wed, Aug 31, 2016 at 4:06 PM, Mazhar Shaikh <ma...@gmail.com>
wrote:

> Hi All,
>
> Im running a 3 zookeeper  process and noticed all 3 zookeeper process is
> listening on one unknown random port.
>
> Can someone please help me to understand why is this port used for ?
>
> This port not handling any connections and all the 3 zookeeper has
> different port number.
>
> Node1 -> has 1 zookeeper (z1)
> node2 -> has 2 zookeeper (z3 & z3)
>
> server.1=z1.zookeeper.com:2888:3888
> server.2=z2.zookeeper.com:2888:3888
> server.3=z3.zookeeper.com:2889:3889
>
> ****************** Node1 - z1 *********************
> Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
> Clients:
>  /192.168.2.116:53028[1](queued=0,recved=173,sent=173)
>  /192.168.2.27:38375[1](queued=0,recved=175,sent=175)
>  /192.168.2.28:42044[1](queued=0,recved=161,sent=161)
>  /192.168.2.116:55142[0](queued=0,recved=1,sent=0)
>  /192.168.2.216:50024[1](queued=0,recved=176,sent=176)
>
> Latency min/avg/max: 0/149/14357
> Received: 1765
> Sent: 1753
> Connections: 5
> Outstanding: 0
> Zxid: 0x1000016b8
> Mode: follower
> Node count: 216
>
> ****************** Node2 - z2 *********************
> Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
> Clients:
>  /192.168.2.17:45103[1](queued=0,recved=195,sent=195)
>  /192.168.2.18:38099[1](queued=0,recved=176,sent=176)
>  /192.168.2.116:60666[0](queued=0,recved=1,sent=0)
>
> Latency min/avg/max: 0/308/21523
> Received: 9680
> Sent: 9499
> Connections: 3
> Outstanding: 0
> Zxid: 0x1000016b8
> Mode: leader
> Node count: 216
>
> ****************** Node2 - z3 *********************
> Zookeeper version: 3.4.6-1569965, built on 02/20/2014 09:09 GMT
> Clients:
>  /192.168.2.116:47141[0](queued=0,recved=1,sent=0)
>
> Latency min/avg/max: 0/0/0
> Received: 13
> Sent: 12
> Connections: 1
> Outstanding: 0
> Zxid: 0x1000016b8
> Mode: follower
> Node count: 216
>
> ***************************************
>
> z1 - ports
> # netstat -anp | grep 15643 | grep LISTEN
> tcp6       0      0 :::36895                :::*
> LISTEN      15643/java
> tcp6       0      0 :::2181                 :::*
> LISTEN      15643/java
> tcp6       0      0 169.254.2.116:3888      :::*
> LISTEN      15643/java
>
>
> z2 - ports
> # netstat -anp | grep 21235 | grep LISTEN
> tcp6       0      0 :::2181                 :::*
> LISTEN      21235/java
> tcp6       0      0 :::40037                :::*
> LISTEN      21235/java
> tcp6       0      0 169.254.2.216:2888      :::*
> LISTEN      21235/java
> tcp6       0      0 169.254.2.216:3888      :::*
> LISTEN      21235/java
>
> z3 - ports
>  <Perf_VSEPx SYS_CTRLI1> root@sysctrl2:~# netstat -anp | grep 40497 | grep
> LISTEN
> tcp6       0      0 :::2182                 :::*
> LISTEN      40497/java
> tcp6       0      0 169.254.2.1:3889        :::*
> LISTEN      40497/java
> tcp6       0      0 :::42455                :::*
> LISTEN      40497/java
>
>
> Here "z1,z2,z3" are listening on "36895, 40037 & 42455" port respectively
> which has not been configured.
>
> Thanks.
>
> Regards,
> Mazhar Shaikh.
>