Ok, great, good luck! Patrick
On 05/10/2010 11:20 PM, chen peng wrote: > My question has been decided. > *I did not <http://www.iciba.com/not/> know <http://www.iciba.com/know/> > "bin/zkServer start" should be execute on each machine!* > *I took him to be very close in function with **hadoop(**start-all.sh).* > tks! > > Date: Mon, 10 May 2010 23:02:48 -0700 > > From: ph...@apache.org > > To: chenpeng0...@hotmail.com > > CC: zookeeper-user@hadoop.apache.org > > Subject: Re: zookeeper-3.2.2:Cannot open channel to X at election > address / Connection refused > > > > The cases where we've seen this reported in the past the user tracked > > the issue down to a firewall problem, I'm not sure wh at the issue is > > here given you've verified that's not the problem. The log is clearly > > saying: > > > > > Thread:quorumcnxmana...@336] - Cannot open channel to 2 at election > > > address /192.168.1.3:3888 <http://192.168.1.3:3888> > > > java.net.ConnectException: Connection refused > > > > which means that the server is attempting to open a connection to > > 192.168.1.3 port 3888, but the server at that ip/port is not accepting > > the connection. Are you sure that both servers are up/running at the > > same time? The log that you included, this was for server 1 right > > (192.168.1.2)? > > > > You might use "netstat -a" to verify that each server is bound to the > > correct ports on each host, then take a look at the logs to see if this > > connection refused is still happening (it can happen in the logs if > > server 1 starts but server 2 is not yet started, but then sh ould rectify > > once both servers are bound and accepting connections). > > > > If you still have issues create a jira, attach both configs and both log > > files and we'll take closer look. > > https://issues.apache.org/jira/browse/ZOOKEEPER > > > > Good Luck, > > > > Patrick > > > > On 05/10/2010 08:07 PM, chen peng wrote: > > > *Thank <http://www.iciba.com/thank/> you > <http://www.iciba.com/you/> for > > > your <http://www.iciba.com/your/> kind reply,but i think port(s) works > > > well, it **is not <http://www.iciba.com/not/> a problem > > > <http://www.iciba.com/problem/>, **Any other > > > <http://www.iciba.com/other/> suggestions?* > > > PS:*In that case,i installed zookeeper-3.2.2 but hbase.* > > > > > > > ------------------------------------------------------------------------ > > > From: chenpeng0...@hotmail.com > &g t; > To: phu...@gmail.com > > > Subject: RE: zookeeper-3.2.2:Cannot open channel to X at election > > > address / Connection refused > > > Date: Mon, 10 May 2010 14:30:55 +0000 > > > > > > *Thank <http://www.iciba.com/thank/> you > <http://www.iciba.com/you/> for > > > your <http://www.iciba.com/your/> kind reply,but i think port(s) works > > > well, it **is not <http://www.iciba.com/not/> a problem > > > <http://www.iciba.com/problem/>, **Any other > > > <http://www.iciba.com/other/> suggestions?* > > > PS:*In that case,i installed zookeeper-3.2.2 but hbase.* > > > > > > > ------------------------------------------------------------------------ > > > Date: Sat, 8 May 2010 22:43:34 -0700 > > > Subject: Re: zookeeper-3.2.2:Cannot open channel to X at election > > > address / Connection refused > > > From: phu...@gmail.com*> > To: zookeeper-user@hadoop.apache.org; > chenpeng0...@hotmail.com > > > > > > Often this is related to the port(s) being blocked by a firewall. > > > Perhaps you could check this (2888/3888) in both directions? Telnet > can > > > help: > > > > https://help.maximumasp.com/KB/a445/connectivity-testing-with-ping-telnet-tracert-and-pathping-.aspx > > > > > > Patrick > > > > > > 2010/5/7 chen peng <chenpeng0...@hotmail.com > > > <mailto:chenpeng0...@hotmail.com>> > > > > > > > > > Hi all > > > I have a question: after installation of the zookeeper according to > > > the doc for zookeeper( > > > > http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html#sc_systemReq), > > > abnormalities emerge as follows: > > > ------------------------------------------------------ > > > JMX enabled by de fault > > > Using > > > config: /home/baeeq/hadoop-0.20.2/zookeeper-3.2.2/bin/../conf/zoo.cfg > > > Starting zookeeper ... > > > STARTED > > > 2010-05-08 13:37:28,273 - INFO [main:quorumpeercon...@80] - Reading > > > configuration > > > from: /home/baeeq/hadoop-0.20.2/zookeeper-3.2.2/bin/../conf/zoo.cfg > > > 2010-05-08 13:37:28,284 - INFO [main:quorumpeercon...@232] - Defaulting > > > to majority quorums > > > 2010-05-08 13:37:28,299 - INFO [main:quorumpeerm...@118] - Starting > > > quorum peer > > > 2010-05-08 13:37:28,331 - INFO [Thread-1:quorumcnxmanager$liste...@409] > > > - My election bind port: 3888 > > > 2010-05-08 13:37:28,342 - INFO > > > [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorump...@514] - LOOKING > > > 2010-05-08 13:37:28,345 - INFO > > > [QuorumPeer:/0:0:0:0:0:0:0:0:2181:FastLea derelect...@579] - New > > > election: -1 > > > 2010-05-08 13:37:28,351 - WARN [WorkerSender > > > Thread:quorumcnxmana...@336] - Cannot open channel to 2 at election > > > address /192.168.1.3:3888 <http://192.168.1.3:3888> > > > java.net.ConnectException: Connection refused > > > at sun.nio.ch.Net.connect(Native Method) > > > at > > > sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507) > > > at java.nio.channels.SocketChannel.open(SocketChannel.java:146) > > > at > > > > org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:323) > > > at > > > > org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:302) > > > at org.apache.zookeeper.server.quorum.FastLeaderElection > > > $Messenger$WorkerSender.process(FastLeaderElection.java:323) > > > at org.apache.zookeeper.server.quorum.FastLeaderElection > > > $Messenger$WorkerSender.run(FastLeaderElection.java:296) > > > at java.lang.Thread.run(Thread.java:619) > > > 2010-05-08 13:37:28,352 - INFO > > > [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@618] - > > > Notification: 1, -1, 1, 1, LOOKING, LOOKING, 1 > > > 2010-05-08 13:37:28,353 - INFO > > > [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@642] - Adding vote > > > 2010-05-08 13:37:28,557 - WARN > > > [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorumcnxmana...@336] - Cannot open > > > channel to 2 at election address /192.168.1.3:3888 > > > <http://192.168.1.3:3888> > > > java.net.ConnectException: Connection refused > > > at sun.nio.ch.Net.connect(Native Method) > > > at > > > sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl. java:507) > > > at java.nio.channels.SocketChannel.open(SocketChannel.java:146) > > > at > > > > org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:323) > > > at > > > > org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:356) > > > at > > > > org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:603) > > > at > > > org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:515) > > > 2010-05-08 13:37:28,559 - INFO > > > [QuorumPeer:/0:0:0:0:0:0:0:0:2181:fastleaderelect...@612] - > Notification > > > time out: 400 > > > 2010-05-08 13:37:28,961 - WARN > > > [QuorumPeer:/0:0:0:0:0:0:0:0:2181:quorumcnxmana...@336] - Cannot open > > > channel to 2 at election address /192.168.1.3:3888 > > > <http://19 2.168.1.3:3888> > > > java.net.ConnectException: Connection refused > > > at sun.nio.ch.Net.connect(Native Method) > > > at > > > sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507) > > > at java.nio.channels.SocketChannel.open(SocketChannel.java:146) > > > at > > > > org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:323)..... > > > ------------------------------------------------------ > > > fileinfo for zoo.cfg is listed below: > > > tickTime=2000 > > > initLimit=10 > > > syncLimit=5 > > > dataDir=/home/baeeq/hadoop-0.20.2/zookeeper-data > > > clientPort=2181 > > > server.1=192.168.1.2:2888:3888 > > > server.2=192.168.1.3:2888:3888 > > > > > > PS: It works well on the single computer after deleting > > > "server.1=192.168. 1.2:2888:3888 server.2=192.168.1.3:2888:3888" > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > > Hotmail: Trusted email with powerful SPAM protection. > > > https://signup.live.com/signup.aspx?id=60969 > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > Hotmail: Free, trusted and rich email service. Get it now. > > > <https://signup.live.com/signup.aspx?id=60969> > > > > ------------------------------------------------------------------------ > > > Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up > > > now. <https://signup.live.com/signup.aspx?id=60969> > * > * > * > ------------------------------------------------------------------------ > *Hotmail: Powerful Free email with security by Microsoft. Get it now. > <https://signup.live.com/signup.aspx ?id=60969>*