zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ken huang (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ZOOKEEPER-2910) zookeeper listening on unknown random port
Date Fri, 20 Oct 2017 08:33:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16208934#comment-16208934
] 

ken huang edited comment on ZOOKEEPER-2910 at 10/20/17 8:32 AM:
----------------------------------------------------------------

Thx for your reply. It seems ok in your situation.
But i ran 3.4.8/jdk8 on CentOS 7.1 and see the following:
{code:java}
[root@zk146 ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program
name    
tcp        0      0 0.0.0.0:55667           0.0.0.0:*               LISTEN      1187/sshd
          
tcp6       0      0 172.17.156.146:2181     :::*                    LISTEN      29322/java
         
tcp6       0      0 172.17.156.146:9003     :::*                    LISTEN      8807/java
          
tcp6       0      0 172.17.156.146:3888     :::*                    LISTEN      29322/java
         
tcp6       0      0 :::55667                :::*                    LISTEN      1187/sshd
          
tcp6       0      0 :::34006                :::*                    LISTEN      29322/java
         
[root@zk146 ~]# 
{code}

My config is:
{code:java}
server.148=zk148:2888:3888
server.146=zk146:2888:3888
server.147=zk147:2888:3888
{code}

My zookeeper process id is 29322, and there's a 34006 port listened on.

And, in your enviroment, your zookeeper process id is 19, and there's a 2183 port listened
on which is not configed.


was (Author: tdhkx@126.com):
Thx for your reply. It seems ok in your situation.
But i ran 3.4.8/jdk8 on CentOS 7.1 and see the following:
{code:java}
[root@zk146 ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program
name    
tcp        0      0 0.0.0.0:55667           0.0.0.0:*               LISTEN      1187/sshd
          
tcp6       0      0 172.17.156.146:2181     :::*                    LISTEN      29322/java
         
tcp6       0      0 172.17.156.146:9003     :::*                    LISTEN      8807/java
          
tcp6       0      0 172.17.156.146:3888     :::*                    LISTEN      29322/java
         
tcp6       0      0 :::55667                :::*                    LISTEN      1187/sshd
          
tcp6       0      0 :::34006                :::*                    LISTEN      29322/java
         
[root@zk146 ~]# 
{code}

My config is:
{code:java}
server.148=zk148:2888:3888
server.146=zk146:2888:3888
server.147=zk147:2888:3888
{code}

My zookeeper process id is 29322, and there's a 34006 port listened on.

> zookeeper listening on unknown random port
> ------------------------------------------
>
>                 Key: ZOOKEEPER-2910
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2910
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.4.8
>         Environment: CentOS 7
> Zookeeper 3.4.8
> JDK 1.8.0_111
>            Reporter: ken huang
>            Assignee: Patrick Hunt
>
> when zookeeper start, it will listen on three port:
>     2181 for client connnect
>     3888 for leader election
>     random for what ?
> three are three port config in zoo.cfg, 2181、2888、3888, but no 2888 listened on.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message