Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 54AA6200D13 for ; Sat, 30 Sep 2017 22:28:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 535751609D5; Sat, 30 Sep 2017 20:28:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 70DF91609C2 for ; Sat, 30 Sep 2017 22:28:04 +0200 (CEST) Received: (qmail 15122 invoked by uid 500); 30 Sep 2017 20:28:03 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 15111 invoked by uid 99); 30 Sep 2017 20:28:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Sep 2017 20:28:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D7CB01808AB for ; Sat, 30 Sep 2017 20:28:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id KcNfFqGYfy6P for ; Sat, 30 Sep 2017 20:28:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 524855F29A for ; Sat, 30 Sep 2017 20:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B8C43E06BB for ; Sat, 30 Sep 2017 20:28:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6D6A1242B4 for ; Sat, 30 Sep 2017 20:28:00 +0000 (UTC) Date: Sat, 30 Sep 2017 20:28:00 +0000 (UTC) From: "Patrick Hunt (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (ZOOKEEPER-2910) zookeeper listening on unknown random port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 30 Sep 2017 20:28:05 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2910?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 16187200#comment-16187200 ]=20 Patrick Hunt edited comment on ZOOKEEPER-2910 at 9/30/17 8:27 PM: ------------------------------------------------------------------ Not sure what you mean by "random". Could you elaborate? Perhaps show what = is leading to you believe this? I ran 3.4.10/jdk8 on ubuntu 17.04 and see the following: {noformat} $ sudo netstat -anp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State = PID/Program name tcp 0 0 0.0.0.0:2181 0.0.0.0:* LISTEN = 17/java tcp 0 0 0.0.0.0:2182 0.0.0.0:* LISTEN = 18/java tcp 0 0 0.0.0.0:2183 0.0.0.0:* LISTEN = 19/java tcp 0 0 127.0.0.1:3183 0.0.0.0:* LISTEN = 19/java tcp 0 0 127.0.0.1:4181 0.0.0.0:* LISTEN = 17/java tcp 0 0 127.0.0.1:4182 0.0.0.0:* LISTEN = 18/java tcp 0 0 127.0.0.1:4183 0.0.0.0:* LISTEN = 19/java tcp 0 0 127.0.0.1:58712 127.0.0.1:4181 ESTABLI= SHED 18/java tcp 0 0 127.0.0.1:4181 127.0.0.1:58708 ESTABLI= SHED 17/java tcp 0 0 127.0.0.1:3183 127.0.0.1:46588 ESTABLI= SHED 19/java tcp 0 0 127.0.0.1:3183 127.0.0.1:46590 ESTABLI= SHED 19/java tcp 0 0 127.0.0.1:4182 127.0.0.1:32794 ESTABLI= SHED 18/java tcp 0 0 127.0.0.1:4181 127.0.0.1:58712 ESTABLI= SHED 17/java tcp 0 0 127.0.0.1:58708 127.0.0.1:4181 ESTABLI= SHED 19/java tcp 0 0 127.0.0.1:32794 127.0.0.1:4182 ESTABLI= SHED 19/java tcp 0 0 127.0.0.1:46588 127.0.0.1:3183 ESTABLI= SHED 18/java tcp 0 0 127.0.0.1:46590 127.0.0.1:3183 ESTABLI= SHED 17/java {noformat} my config is {noformat} clientPort=3D2181 server.1=3Dlocalhost:3181:4181 server.2=3Dlocalhost:3182:4182 server.3=3Dlocalhost:3183:4183 {noformat} This all looks fine to me. Nothing "random" that I noticed. was (Author: phunt): Not sure what you mean by "random". Could you elaborate? Perhaps show what = is leading to you believe this? I ran 3.4.10/jdk8 on ubuntu 17.04 and see the following: {noformat} $ sudo netstat -anp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State = PID/Program name tcp 0 0 0.0.0.0:2181 0.0.0.0:* LISTEN = 17/java tcp 0 0 0.0.0.0:2182 0.0.0.0:* LISTEN = 18/java tcp 0 0 0.0.0.0:2183 0.0.0.0:* LISTEN = 19/java tcp 0 0 127.0.0.1:3183 0.0.0.0:* LISTEN = 19/java tcp 0 0 127.0.0.1:4181 0.0.0.0:* LISTEN = 17/java tcp 0 0 127.0.0.1:4182 0.0.0.0:* LISTEN = 18/java tcp 0 0 127.0.0.1:4183 0.0.0.0:* LISTEN = 19/java tcp 0 0 127.0.0.1:58712 127.0.0.1:4181 ESTABLI= SHED 18/java tcp 0 0 127.0.0.1:4181 127.0.0.1:58708 ESTABLI= SHED 17/java tcp 0 0 127.0.0.1:3183 127.0.0.1:46588 ESTABLI= SHED 19/java tcp 0 0 127.0.0.1:3183 127.0.0.1:46590 ESTABLI= SHED 19/java tcp 0 0 127.0.0.1:4182 127.0.0.1:32794 ESTABLI= SHED 18/java tcp 0 0 127.0.0.1:4181 127.0.0.1:58712 ESTABLI= SHED 17/java tcp 0 0 127.0.0.1:58708 127.0.0.1:4181 ESTABLI= SHED 19/java tcp 0 0 127.0.0.1:32794 127.0.0.1:4182 ESTABLI= SHED 19/java tcp 0 0 127.0.0.1:46588 127.0.0.1:3183 ESTABLI= SHED 18/java tcp 0 0 127.0.0.1:46590 127.0.0.1:3183 ESTABLI= SHED 17/java {noformat} my config is {noformat} clientPort=3D2181 server.1=3Dlocalhost:3181:4181 server.2=3Dlocalhost:3182:4182 server.3=3Dlocalhost:3183:4183 {noformat} > 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 > > 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=E3=80=812888=E3=80=813888, b= ut no 2888 listened on.=20 -- This message was sent by Atlassian JIRA (v6.4.14#64029)