Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 89C5E18F0D for ; Mon, 22 Jun 2015 04:10:35 +0000 (UTC) Received: (qmail 35703 invoked by uid 500); 22 Jun 2015 04:10:34 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 35654 invoked by uid 500); 22 Jun 2015 04:10:34 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 35643 invoked by uid 99); 22 Jun 2015 04:10:34 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2015 04:10:34 +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 37B5A183C41 for ; Mon, 22 Jun 2015 04:10:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4tq0e_QmHk9p for ; Mon, 22 Jun 2015 04:10:25 +0000 (UTC) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 3665E206B1 for ; Mon, 22 Jun 2015 04:10:25 +0000 (UTC) Received: by pdbci14 with SMTP id ci14so71292352pdb.2 for ; Sun, 21 Jun 2015 21:10:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-type; bh=F9quSSh0+s/rJa0SIeJa9lM68kGwsWgRymYnGWa4MKY=; b=Ces8leixt32Kux9JzZ+mx81imVVa9uC4slZjz5kUhA79+P+YiBexmpf6vcxZU86+S7 3YZE9ImRYvSZ0D5OC28GbnlNIZ9ar9OPaImvFamCAERIO0PWu1e9gSm22usHv5BHlh74 gBTT67AE3spv7uC7xSkiW7eLNEScAvqxey5KkMdbcB/oxSkMtYe7w0IX8C4xJeVhTlCT QJJxdsj55lt1eiTBRkDIg57PINUJeG8NDKXjUVScIxizGsbn2DAVaqbB5RPJKHf+5YsI EqBk4NO6qs75rOnSbmk5BUDbgVMapwP6SqnWGQ0fNJQJ7EgCnB60jP6CofwvObLxfgj5 NnKg== X-Gm-Message-State: ALoCoQkcpzoXPj0blHw1wqekABfh/nhkOTM4DttCT23bsV0RkGZxYMDcbIHOv/aRW+YMPSl5zf1s X-Received: by 10.68.219.42 with SMTP id pl10mr55493711pbc.154.1434946218632; Sun, 21 Jun 2015 21:10:18 -0700 (PDT) Received: from Rahuls-MacBook-Pro.local ([106.51.143.205]) by mx.google.com with ESMTPSA id cz1sm18066578pbc.84.2015.06.21.21.10.15 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Jun 2015 21:10:17 -0700 (PDT) Date: Mon, 22 Jun 2015 09:40:13 +0530 From: Rahul To: =?utf-8?Q?Ra=C3=BAl_Guti=C3=A9rrez_Segal=C3=A9s?= Cc: user@zookeeper.apache.org Message-ID: In-Reply-To: References: <4EF9E7B1-CB78-4FC0-854C-77FA3E21785C@incture.com> Subject: Re: Zookeeper error: Cannot open channel to X at election address X-Mailer: Airmail (271) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="55878aa5_327b23c6_1d0" --55878aa5_327b23c6_1d0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Ra=C3=BAl, =C2=A0 I tried the command you suggested and I am not getting any respons= e. I tried the same command for the port 2181=C2=A0and that is bound to z= ookeeper, this was the result for port 2181 tcp6 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A00 :::2181 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :::* =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0LISTEN =C2=A0 =C2=A0 =C2=A00 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A063007 =C2=A0 =C2=A0 =C2=A0 6778/java =C2=A0 Does this means zookeeper is not bound to the port 3888=3F The onl= y place where I have mentioned port 3888 is in the config file at server.= 1=3Dx.x.x.x:2888:3888. Should I make other configuration changes=3F=C2=A0= --=C2=A0 Rahul J Technical Lead Incture On June 22, 2015 at 5:56:56 AM, Ra=C3=BAl Guti=C3=A9rrez Segal=C3=A9s (rg= s=40itevenworks.net) wrote: HI Rahul, =20 are you sure all servers are actually binding port 3888 on the right =20 interface (or on 0.0.0.0) and not on the loopback (127.0.0.1)=3F What doe= s =20 netstat -apentu =7C grep -i listen =7C grep 3888 say=3F =20 -rgs =20 On 19 June 2015 at 22:22, Rahul wrote: =20 > I have installed zookeeper in 3 different aws servers. The following is= =20 > the configuration in all the servers =20 > =20 > tickTime=3D2000 =20 > initLimit=3D10 =20 > syncLimit=3D5 =20 > dataDir=3D/var/zookeeper =20 > clientPort=3D2181 =20 > server.1=3Dx.x.x.x:2888:3888 =20 > server.2=3Dx.x.x.x:2888:3888 =20 > server.3=3Dx.x.x.x:2888:3888 =20 > All the three instance have a myid file at var/zookeeper with appropria= te =20 > id in it. All the three servers have all ports open from the aws consol= e. =20 > But when I run the zookeeper server, I get the following error in all t= he =20 > instances. =20 > =20 > =20 > All the three instance have a myid file at var/zookeeper with appropria= te =20 > id in it. All the three servers have all ports open from the aws consol= e. =20 > But when I run the zookeeper server, I get the following error in all t= he =20 > instances. =20 > =20 > 2015-06-19 12:09:22,989 =5Bmyid:1=5D - WARN =20 > =5BQuorumPeer=5Bmyid=3D1=5D/0:0:0:0:0:0:0:0:2181:QuorumCnxManager=40382= =5D =20 > - Cannot open channel to 2 at election address /x.x.x.x:3888 =20 > java.net.ConnectException: Connection refused =20 > at java.net.PlainSocketImpl.socketConnect(Native Method) =20 > at =20 > java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java= :339) =20 > at =20 > java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketIm= pl.java:200) =20 > at =20 > java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:1= 82) =20 > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) =20 > at java.net.Socket.connect(Socket.java:579) =20 > at =20 > org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCn= xManager.java:368) =20 > at =20 > org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCn= xManager.java:402) =20 > at =20 > org.apache.zookeeper.server.quorum.=46astLeaderElection.look=46orLeader= (=46astLeaderElection.java:840) =20 > at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:76= 2) =20 > 2015-06-19 12:09:23,170 =5Bmyid:1=5D - WARN =20 > =5BQuorumPeer=5Bmyid=3D1=5D/0:0:0:0:0:0:0:0:2181:QuorumCnxManager=40382= =5D =20 > - Cannot open channel to 3 at election address /x.x.x.x:3888 =20 > java.net.ConnectException: Connection refused =20 > at java.net.PlainSocketImpl.socketConnect(Native Method) =20 > at =20 > java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java= :339) =20 > at =20 > java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketIm= pl.java:200) =20 > at =20 > java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:1= 82) =20 > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) =20 > at java.net.Socket.connect(Socket.java:579) =20 > at =20 > org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCn= xManager.java:368) =20 > at =20 > org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCn= xManager.java:402) =20 > at =20 > org.apache.zookeeper.server.quorum.=46astLeaderElection.look=46orLeader= (=46astLeaderElection.java:840) =20 > at org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:76= 2) =20 > 2015-06-19 12:09:23,170 =5Bmyid:1=5D - IN=46O =20 > =5BQuorumPeer=5Bmyid=3D1=5D/0:0:0:0:0:0:0:0:2181:=46astLeaderElection=40= 849=5D - =20 > Notification time out: 25600 =20 > =E2=80=94 =20 > Rahul =20 --55878aa5_327b23c6_1d0--