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 38D1010E53 for ; Tue, 11 Feb 2014 09:54:25 +0000 (UTC) Received: (qmail 31870 invoked by uid 500); 11 Feb 2014 09:54:17 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 31576 invoked by uid 500); 11 Feb 2014 09:54:14 -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 31562 invoked by uid 99); 11 Feb 2014 09:54:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Feb 2014 09:54:12 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xiaotao.cs.nju@gmail.com designates 209.85.216.49 as permitted sender) Received: from [209.85.216.49] (HELO mail-qa0-f49.google.com) (209.85.216.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Feb 2014 09:54:07 +0000 Received: by mail-qa0-f49.google.com with SMTP id w8so11106626qac.8 for ; Tue, 11 Feb 2014 01:53:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=PtFzu4ScIn93pdr1NT8ZJsI8426H2DlWrBLJTBZK9hE=; b=ZOCYX4Nd74IbQtZv4hVxns6m1b8qvlEwVEdNTsHIWV0TbMVpLWvrIsZyfs9DaVyiPq 4gfh9eq7wSxk2Mq1cx26YaTRqgxBkttqDJzlP2ehnjfT2vT19XgdRdpauLPCdGVyuwsI uVkTuPZxV/+NTNUrc85R/gwYMkPPrHwkmqIz3+xkNQSoLVBtUO7ysD+wYSD3pmWdbgIi b9iZn/AU2lRsA8itHxTSQOSQbeciH+pkh8hBYn4yUScCHGnl9IpRaSNJfS7IvOM1UeWI 6SnBekE2iVrLL++IMU5R6BNd5GC2zflkL9C8j/b/7DX60YJ9y1xviGEY1SHI/Wz+pU6h CcLQ== MIME-Version: 1.0 X-Received: by 10.140.21.179 with SMTP id 48mr52190712qgl.78.1392112426766; Tue, 11 Feb 2014 01:53:46 -0800 (PST) Received: by 10.96.167.35 with HTTP; Tue, 11 Feb 2014 01:53:46 -0800 (PST) Date: Tue, 11 Feb 2014 17:53:46 +0800 Message-ID: Subject: zookeeper works well but log reports "Cannot open channel to 2 at election address ... java.net.ConnectException: Connection refused" From: Tao Xiao To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a11c11feeaf553004f21e6eaf X-Virus-Checked: Checked by ClamAV on apache.org --001a11c11feeaf553004f21e6eaf Content-Type: text/plain; charset=ISO-8859-1 I installed zookeeper 3.4.5 in a 3-node cluster and started it. I think zookeeper works well because the HBase cluster, which relies on zookeeper, indeed works well. But when I tried to query zookeeper's status, it reported: [root@imon-1 zookeeper-3.4.5]# bin/zkServer.sh status JMX enabled by default Using config: /usr/local/apache/zookeeper-3.4.5/bin/../conf/zoo.cfg Error contacting service. It is probably not running. I checked the log and found it reported the following: 2014-02-11 15:42:15,623 [myid:] - INFO [main:QuorumPeerConfig@101] - Reading configuration from: /usr/local/apache/zookeeper-3.4.5/bin/../conf/zoo.cfg 2014-02-11 15:42:15,629 [myid:] - INFO [main:QuorumPeerConfig@334] - Defaulting to majority quorums 2014-02-11 15:42:15,652 [myid:1] - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3 2014-02-11 15:42:15,652 [myid:1] - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0 2014-02-11 15:42:15,653 [myid:1] - INFO [main:DatadirCleanupManager@101] - Purge task is not scheduled. 2014-02-11 15:42:15,683 [myid:1] - INFO [main:QuorumPeerMain@127] - Starting quorum peer 2014-02-11 15:42:15,726 [myid:1] - INFO [main:NIOServerCnxnFactory@94] - binding to port 0.0.0.0/0.0.0.0:2181 2014-02-11 15:42:15,759 [myid:1] - INFO [main:QuorumPeer@913] - tickTime set to 2000 2014-02-11 15:42:15,760 [myid:1] - INFO [main:QuorumPeer@933] - minSessionTimeout set to -1 2014-02-11 15:42:15,760 [myid:1] - INFO [main:QuorumPeer@944] - maxSessionTimeout set to -1 2014-02-11 15:42:15,760 [myid:1] - INFO [main:QuorumPeer@959] - initLimit set to 10 2014-02-11 15:42:15,874 [myid:1] - INFO [main:FileSnap@83] - Reading snapshot /var/data/zk/dataDir/version-2/snapshot.100072a68 2014-02-11 15:42:18,211 [myid:1] - INFO [Thread-1:QuorumCnxManager$Listener@486] - My election bind port: 0.0.0.0/0.0.0.0:3888 2014-02-11 15:42:18,226 [myid:1] - INFO [QuorumPeer[myid=1]/0.0.0.0:2181 :QuorumPeer@670] - LOOKING 2014-02-11 15:42:18,232 [myid:1] - INFO [QuorumPeer[myid=1]/0.0.0.0:2181 :FastLeaderElection@740] - New election. My id = 1, proposed zxid=0x1000735ac 2014-02-11 15:42:18,234 [myid:1] - INFO [WorkerReceiver[myid=1]:FastLeaderElection@542] - Notification: 1 (n.leader), 0x1000735ac (n.zxid), 0x1 (n.round), LOOKING (n.state), 1 (n.sid), 0x1 (n.peerEPoch), LOOKING (my state) 2014-02-11 15:42:18,256 [myid:1] - WARN [WorkerSender[myid=1]:QuorumCnxManager@368] - Cannot open channel to 2 at election address imon-2/172.16.38.144:3888 java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:354) at org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:327) at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:393) at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:365) at java.lang.Thread.run(Thread.java:662) 2014-02-11 15:42:18,268 [myid:1] - WARN [WorkerSender[myid=1]:QuorumCnxManager@368] - Cannot open channel to 3 at election address imon-3/172.16.38.145:3888 java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:354) at org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:327) at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:393) at org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:365) at java.lang.Thread.run(Thread.java:662) 2014-02-11 15:42:18,436 [myid:1] - WARN [QuorumPeer[myid=1]/0.0.0.0:2181 :QuorumCnxManager@368] - Cannot open channel to 2 at election address imon-2/172.16.38.144:3888 java.net.ConnectException: Connection refused ... ... Do these warnings matter? What is the reason. --001a11c11feeaf553004f21e6eaf--