That's good to hear Satish!! Can you let us know what you intend to use 
Zookeeper for?

mahadev


________________________________________
From: Satish Bhatti [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2008 10:05 AM
To: Mahadev Konar
Subject: Re: [Zookeeper-user] FW: Client Connect Exceptions + Zookeeper Unit 
Tests fail

Hey Mahadev,

Yeah, the same Soylatte 64 bit JDK works fine on Ubuntu. I just use a Mac as my 
dev box, and I can use JDK 1.5 for that, so I think it should be fine.  If 
ZooKeeper pans out then I will probably end up using it on several hundred 
machines!  No doubt that will bring its own set of problems, but so far I like 
it a lot. :)

Satish


On Tue, Aug 12, 2008 at 2:41 PM, Mahadev Konar <[EMAIL PROTECTED]> wrote:
Hi Satish,
  This looks like a problem with your jvm 1.6 then. We use NIO framwork in Java 
 for receving and sending. We have seen NIO  having some bugs on some 
platforms. I am pretty sure that the problem you are seeing has something to do 
with NIO in jvm 1.6 on mac. 

Is it possible for you to use 1.5 or if not then you would have to use java 1.6 
on linux or unbuntu. We have tested with sun's jvm 1.6 on linux and ubuntu but 
not on a mac.

mahadev



On 8/12/08 1:04 PM, "Satish Bhatti" <[EMAIL PROTECTED]> wrote:
Hey Mahadev,

So it works for me now... using JDK 1.5.  That's not so cool, because the rest 
of my code uses Java 1.6.  I was using the Soylatte 64 bit JVM.

java version "1.6.0_03-p3"
Java(TM) SE Runtime Environment (build 
1.6.0_03-p3-landonf_03_feb_2008_01_32-b00)
Java HotSpot(TM) 64-Bit Server VM (build 
1.6.0_03-p3-landonf_03_feb_2008_01_32-b00, mixed mode)

 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun  9 19:30:53 PDT 2008; 
root:xnu-1228.5.20~1/RELEASE_I386 i386 i386

Satish


On Mon, Aug 11, 2008 at 10:02 AM, Mahadev Konar <[EMAIL PROTECTED]> wrote:
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] <http://[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>  
<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>  
<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>  <http://127.0.0.1:65246>  remote=/127.0.0.1:2181 
<http://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>  
<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>  <http://127.0.0.1:65247>  remote=/127.0.0.1:2181 
<http://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>  <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>  <http://127.0.0.1:65269>  remote=/127.0.0.1:2181 
<http://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>  
<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>  <http://127.0.0.1:65271>  remote=/127.0.0.1:2181 
<http://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>  
<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>  <http://127.0.0.1:65272>  remote=/127.0.0.1:2181 
<http://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>  
<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>  
<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>  
<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>  
<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] 
<http://[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



Reply via email to