Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Zookeeper >> mail # user >> Cannot Open Channel at Election Address


Copy link to this message
-
Re: Cannot Open Channel at Election Address
Hi,

The log file is called "currentEpoch", which contains just a number 0. All
five servers has the same log file.
Some days ago, I succeed in setting up this multi server cluster.
But from last week, this problem keeps showing up.
On Sat, Oct 6, 2012 at 6:50 PM, Flavio Junqueira <[EMAIL PROTECTED]> wrote:

> Hi Frank, Without seeing logs is hard to say, but given the messages you
> posted, I wonder if it is an ipv6 related issue.
>
> -Flavio
>
> On Oct 5, 2012, at 12:03 PM, Frank Zheng wrote:
>
> > Hi All,
> >
> > I tried to set up a multi-server cluster in two machines, following the
> > instructions on the website.
> > I set up 5 servers (named 1~5) in two machines. The configuration is as
> > follows.
> >
> > tickTime=2000
> > initLimit=10
> > syncLimit=5
> > clientPort=2181
> > dataDir=/var/zookeeper/1
> >
> > server.1=testing.machine1:2900:3900
> > server.2=testing.machine1:2901:3901
> > server.3=testing.machine1:2902:3902
> > server.4=testing.machine2:2903:3903
> > server.5=testing.machine2:2904:3904
> >
> >
> > When I set up the cluster, there was a problem in all the five servers.
> >
> >
> > 2012-10-05 17:51:43,555 [myid:1] - WARN
> > [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@368] - Cannot
> > open channel to 2 at election address testing.machine1/
> 192.168.0.101:3901
> > java.net.ConnectException: Connection refused
> >    at java.net.PlainSocketImpl.socketConnect(Native Method)
> >    at
> >
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
> >    at
> >
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
> >    at
> >
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
> >    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
> >    at java.net.Socket.connect(Socket.java:546)
> >    at
> >
> org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:354)
> >    at
> >
> org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:388)
> >    at
> >
> org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:765)
> >    at
> > org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:716)
> > 2012-10-05 17:51:43,556 [myid:1] - WARN
> > [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@368] - Cannot
> > open channel to 3 at election address testing.machine1/
> 192.168.0.101:3902
> > java.net.ConnectException: Connection refused
> >    at java.net.PlainSocketImpl.socketConnect(Native Method)
> >    at
> >
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
> >    at
> >
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
> >    at
> >
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
> >    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
> >    at java.net.Socket.connect(Socket.java:546)
> >    at
> >
> org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:354)
> >    at
> >
> org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:388)
> >    at
> >
> org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:765)
> >    at
> > org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:716)
> > 2012-10-05 17:51:43,557 [myid:1] - INFO
> > [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@190] - Have
> > smaller server identifier, so dropping the connection: (4, 1)
> > 2012-10-05 17:51:43,558 [myid:1] - INFO
> > [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:FastLeaderElection@774] -
> > Notification time out: 60000
> >
> >
> > I tried in zookeeper-3.3.6 and zookeeper-3.4.4, and got the same problem.
> > Could anyone help me?
> >
> > Thanks
> > Frank
>
>
--
Sincerely,
Zheng Yu
Mobile:  (852) 60670059
Email:    [EMAIL PROTECTED]
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB