From: Mahadev K. <ma...@ya...> - 2008-08-11 17:04:17
|
Hi Satish, This does sound a little weird since it works perfectly on my mac. Here is my mac config-- 9.4.0 Darwin Kernel Version 9.4.0: M And java java version "1.5.0_13" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237) Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing) Whats your config? mahadev On 8/8/08 11:16 AM, "Satish Bhatti" <cth...@gm...> wrote: > Hey Mahadev, > > OK, so I downloaded the latest version from trunk, and applied the patch. > Here is what I get: > > CLIENT > ----------- > > scbmac:~/zookeeper $ java -cp > zookeeper-dev.jar:src/java/lib/log4j-1.2.15.jar:conf > org.apache.zookeeper.ZooKeeper 127.0.0.1:2181 <http://127.0.0.1:2181> > 2008-08-08 10:59:22,025 - INFO [SendThread:ClientCnxn$SendThread@646] - > Attempting connection to server /127.0.0.1:2181 <http://127.0.0.1:2181> > 2008-08-08 10:59:22,029 - INFO [SendThread:ClientCnxn$SendThread@575] - > Priming connection to java.nio.channels.SocketChannel[connected > local=/127.0.0.1:65246 <http://127.0.0.1:65246> remote=/127.0.0.1:2181 > <http://127.0.0.1:2181> ] > 2008-08-08 10:59:22,032 - INFO [SendThread:ClientCnxn$SendThread@710] - > Server connection successful > > > > c2008-08-08 10:59:25,365 - WARN [SendThread:ClientCnxn$SendThread@732] - > Closing: > java.io.IOException: TIMED OUT > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:679) > null: 0--1 > rea2008-08-08 10:59:26,779 - INFO [SendThread:ClientCnxn$SendThread@646] - > Attempting connection to server /127.0.0.1:2181 <http://127.0.0.1:2181> > 2008-08-08 10:59:26,783 - INFO [SendThread:ClientCnxn$SendThread@575] - > Priming connection to java.nio.channels.SocketChannel[connected > local=/127.0.0.1:65247 <http://127.0.0.1:65247> remote=/127.0.0.1:2181 > <http://127.0.0.1:2181> ] > 2008-08-08 10:59:26,785 - INFO [SendThread:ClientCnxn$SendThread@710] - > Server connection successful > 2008-08-08 10:59:30,118 - WARN [SendThread:ClientCnxn$SendThread@732] - > Closing: > java.io.IOException: TIMED OUT > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:679) > null: 0--1 > scbmac:~/zookeeper $ java -cp > zookeeper-dev.jar:src/java/lib/log4j-1.2.15.jar:conf > org.apache.zookeeper.ZooKeeper 127.0.0.1:21812008-08-08 11:02:25,041 - INFO > [SendThread:ClientCnxn$SendThread@646] - Attempting connection to server > /127.0.0.1:2181 <http://127.0.0.1:2181> > 2008-08-08 11:02:25,046 - INFO [SendThread:ClientCnxn$SendThread@575] - > Priming connection to java.nio.channels.SocketChannel[connected > local=/127.0.0.1:65269 <http://127.0.0.1:65269> remote=/127.0.0.1:2181 > <http://127.0.0.1:2181> ] > 2008-08-08 11:02:25,049 - INFO [SendThread:ClientCnxn$SendThread@710] - > Server connection successful > 2008-08-08 11:02:28,382 - WARN [SendThread:ClientCnxn$SendThread@732] - > Closing: > java.io.IOException: TIMED OUT > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:679) > null: 0--1 > 2008-08-08 11:02:29,506 - INFO [SendThread:ClientCnxn$SendThread@646] - > Attempting connection to server /127.0.0.1:2181 <http://127.0.0.1:2181> > 2008-08-08 11:02:29,509 - INFO [SendThread:ClientCnxn$SendThread@575] - > Priming connection to java.nio.channels.SocketChannel[connected > local=/127.0.0.1:65271 <http://127.0.0.1:65271> remote=/127.0.0.1:2181 > <http://127.0.0.1:2181> ] > 2008-08-08 11:02:29,510 - INFO [SendThread:ClientCnxn$SendThread@710] - > Server connection successful > 2008-08-08 11:02:32,842 - WARN [SendThread:ClientCnxn$SendThread@732] - > Closing: > java.io.IOException: TIMED OUT > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:679) > null: 0--1 > 2008-08-08 11:02:34,015 - INFO [SendThread:ClientCnxn$SendThread@646] - > Attempting connection to server /127.0.0.1:2181 <http://127.0.0.1:2181> > 2008-08-08 11:02:34,018 - INFO [SendThread:ClientCnxn$SendThread@575] - > Priming connection to java.nio.channels.SocketChannel[connected > local=/127.0.0.1:65272 <http://127.0.0.1:65272> remote=/127.0.0.1:2181 > <http://127.0.0.1:2181> ] > 2008-08-08 11:02:34,020 - INFO [SendThread:ClientCnxn$SendThread@710] - > Server connection successful > 2008-08-08 11:02:37,352 - WARN [SendThread:ClientCnxn$SendThread@732] - > Closing: > java.io.IOException: TIMED OUT > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:679) > null: 0--1 > > > SERVER > ------------- > scbmac:~/zookeeper $ java -cp > zookeeper-dev.jar:src/java/lib/log4j-1.2.15.jar:conf > org.apache.zookeeper.server.quorum.QuorumPeer conf/zoo.cfg > > 2008-08-08 10:59:22,039 - WARN [NIOServerCxn.Factory:NIOServerCnxn@474] - > Connected to /127.0.0.1:65246 <http://127.0.0.1:65246> lastZxid 0 > 2008-08-08 10:59:22,044 - WARN [NIOServerCxn.Factory:NIOServerCnxn@503] - > Creating new session 11ba3784d7c0000 > scbmac:~/zookeeper $ java -cp > zookeeper-dev.jar:src/java/lib/log4j-1.2.15.jar:conf > org.apache.zookeeper.server.quorum.QuorumPeer conf/zoo.cfg > 2008-08-08 11:01:59,623 - WARN [main:ZooKeeperServer@349] - Processing > snapshot: /Users/satish/zookeeper/server1/data/snapshot.0 > 2008-08-08 11:01:59,634 - WARN [main:ZooKeeperServer@361] - Processing log > file: /Users/satish/zookeeper/server1/data/log.1 > scbmac:~/zookeeper $ rm -rf server1/data/*scbmac:~/zookeeper $ java -cp > zookeeper-dev.jar:src/java/lib/log4j-1.2.15.jar:conf > org.apache.zookeeper.server.quorum.QuorumPeer conf/zoo.cfg > 2008-08-08 11:02:25,055 - WARN [NIOServerCxn.Factory:NIOServerCnxn@474] - > Connected to /127.0.0.1:65269 <http://127.0.0.1:65269> lastZxid 0 > 2008-08-08 11:02:25,059 - WARN [NIOServerCxn.Factory:NIOServerCnxn@503] - > Creating new session 11ba37b93730000 > 2008-08-08 11:02:25,075 - WARN [SyncThread:NIOServerCnxn@777] - Finished init > of 11ba37b93730000: true > 2008-08-08 11:02:29,512 - WARN [NIOServerCxn.Factory:NIOServerCnxn@474] - > Connected to /127.0.0.1:65271 <http://127.0.0.1:65271> lastZxid 0 > 2008-08-08 11:02:29,515 - WARN [NIOServerCxn.Factory:NIOServerCnxn@503] - > Creating new session 11ba37b93730001 > 2008-08-08 11:02:29,518 - WARN [SyncThread:NIOServerCnxn@777] - Finished init > of 11ba37b93730001: true > 2008-08-08 11:02:33,000 - WARN [SessionTracker:SessionTrackerImpl@135] - > Expiring 11ba37b93730000 > 2008-08-08 11:02:33,002 - INFO [ProcessThread:PrepRequestProcessor@345] - > Processed session termination request for id: 11ba37b93730000 > 2008-08-08 11:02:34,023 - WARN [NIOServerCxn.Factory:NIOServerCnxn@474] - > Connected to /127.0.0.1:65272 <http://127.0.0.1:65272> lastZxid 0 > 2008-08-08 11:02:34,024 - WARN [NIOServerCxn.Factory:NIOServerCnxn@503] - > Creating new session 11ba37b93730002 > 2008-08-08 11:02:34,027 - WARN [SyncThread:NIOServerCnxn@777] - Finished init > of 11ba37b93730002: true > 2008-08-08 11:02:36,000 - WARN [SessionTracker:SessionTrackerImpl@135] - > Expiring 11ba37b93730001 > 2008-08-08 11:02:36,003 - INFO [ProcessThread:PrepRequestProcessor@345] - > Processed session termination request for id: 11ba37b93730001 > > Still no joy! :( > > Satish > > > > On Thu, Aug 7, 2008 at 11:44 AM, Mahadev Konar <ma...@ya...> wrote: >> The only thing I see different is that you seem to be using an old version of >> zookeeper on apache. Can you download trunk from >> >> >> http://svn.apache.org/repos/asf/hadoop/zookeeper/trunk >> >> And try it again? >> >> The print statement -- >> "Trying to connect" is not there in the code any more. Can you try the trunk >> so that the log information matches the current code in the trunk and easier >> to debug. >> >> mahadev > > |