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" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] -
> Attempting connection to server /127.0.0.1:2181 <http://127.0.0.1:2181>
> 2008-08-08 10:59:22,029 - INFO [SendThread:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Server connection successful
>
>
>
> c2008-08-08 10:59:25,365 - WARN [SendThread:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Attempting connection to server /127.0.0.1:2181 <http://127.0.0.1:2181>
> 2008-08-08 10:59:26,783 - INFO [SendThread:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Server connection successful
> 2008-08-08 10:59:30,118 - WARN [SendThread:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] - Attempting connection to server
> /127.0.0.1:2181 <http://127.0.0.1:2181>
> 2008-08-08 11:02:25,046 - INFO [SendThread:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Server connection successful
> 2008-08-08 11:02:28,382 - WARN [SendThread:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Attempting connection to server /127.0.0.1:2181 <http://127.0.0.1:2181>
> 2008-08-08 11:02:29,509 - INFO [SendThread:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Server connection successful
> 2008-08-08 11:02:32,842 - WARN [SendThread:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Attempting connection to server /127.0.0.1:2181 <http://127.0.0.1:2181>
> 2008-08-08 11:02:34,018 - INFO [SendThread:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Server connection successful
> 2008-08-08 11:02:37,352 - WARN [SendThread:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] - Processing
> snapshot: /Users/satish/zookeeper/server1/data/snapshot.0
> 2008-08-08 11:01:59,634 - WARN [main:[EMAIL PROTECTED] - 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:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Creating new session 11ba37b93730000
> 2008-08-08 11:02:25,075 - WARN [SyncThread:[EMAIL PROTECTED] - Finished init
> of 11ba37b93730000: true
> 2008-08-08 11:02:29,512 - WARN [NIOServerCxn.Factory:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Creating new session 11ba37b93730001
> 2008-08-08 11:02:29,518 - WARN [SyncThread:[EMAIL PROTECTED] - Finished init
> of 11ba37b93730001: true
> 2008-08-08 11:02:33,000 - WARN [SessionTracker:[EMAIL PROTECTED] -
> Expiring 11ba37b93730000
> 2008-08-08 11:02:33,002 - INFO [ProcessThread:[EMAIL PROTECTED] -
> Processed session termination request for id: 11ba37b93730000
> 2008-08-08 11:02:34,023 - WARN [NIOServerCxn.Factory:[EMAIL PROTECTED] -
> 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:[EMAIL PROTECTED] -
> Creating new session 11ba37b93730002
> 2008-08-08 11:02:34,027 - WARN [SyncThread:[EMAIL PROTECTED] - Finished init
> of 11ba37b93730002: true
> 2008-08-08 11:02:36,000 - WARN [SessionTracker:[EMAIL PROTECTED] -
> Expiring 11ba37b93730001
> 2008-08-08 11:02:36,003 - INFO [ProcessThread:[EMAIL PROTECTED] -
> Processed session termination request for id: 11ba37b93730001
>
> Still no joy! :(
>
> Satish
>
>
>
> On Thu, Aug 7, 2008 at 11:44 AM, Mahadev Konar <[EMAIL PROTECTED]> 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
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Zookeeper-user mailing list
Zookeeper-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zookeeper-user