You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "ken huang (JIRA)" <ji...@apache.org> on 2017/10/18 07:45:00 UTC

[jira] [Comment Edited] (ZOOKEEPER-2910) zookeeper listening on unknown random port

    [ 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/18/17 7:44 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.


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:
{{
[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 ~]# 
}}
my config is:
{{server.148=zk148:2888:3888
server.146=zk146:2888:3888
server.147=zk147:2888:3888
}}

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)