Hi Satish,
I just tried it on my mac and the client connects fine. I used your config
and
Echo ³stat² | nc localhost 2181 shows
Zookeeper version: 3.0.0-681910, built on 08/07/2008 17:32 GMT
Clients:
/0:0:0:0:0:0:0:1%0:65305[1](queued=0,recved=0,sent=0)
/0:0:0:0:0:0:0:1%0:65280[1](queued=0,recved=102,sent=102)
Latency min/avg/max: 3/20/38
Received: 102
Sent: 102
Outstanding: 0
Zxid: 0x2
Mode: standalone
Also, which zookeeper version are you trrying out? My test was on trunk on
apache.
http://svn.apache.org/repos/asf/hadoop/zookeeper/trunk
Mahadev
On 8/7/08 11:01 AM, "Satish Bhatti" <[EMAIL PROTECTED]> wrote:
> scbmac:~/zookeeper $ echo "stat" | nc localhost 2181
> scbmac:~/zookeeper $ echo "stat" | nc `hostname` 2181
> scbmac:~/zookeeper $
>
> Was there supposed to be output?
>
> I ran the simple tutorial example again. Here's what I got:
>
> CLIENT
> -----------
>
> scbmac:~/zookeeper $ java -cp zookeeper-dev.jar:java/lib/log4j-1.2.15.jar:conf
> com.yahoo.zookeeper.ZooKeeper 127.0.0.1:2181WARN -
> [SendThread:[EMAIL PROTECTED] - Trying to connect to /127.0.0.1:2181
> <http://127.0.0.1:2181>
> WARN - [SendThread:[EMAIL PROTECTED] - Priming connection to
> java.nio.channels.SocketChannel[connected local=/127.0.0.1:54372
> <http://127.0.0.1:54372> remote=/127.0.0.1:2181 <http://127.0.0.1:2181> ]
> WARN - [SendThread:[EMAIL PROTECTED] - Closing:
> java.io.IOException: TIMED OUT
> at com.yahoo.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:666)
> null: 0--1
> WARN - [SendThread:[EMAIL PROTECTED] - Trying to connect to
> /127.0.0.1:2181 <http://127.0.0.1:2181>
> WARN - [SendThread:[EMAIL PROTECTED] - Priming connection to
> java.nio.channels.SocketChannel[connected local=/127.0.0.1:54373
> <http://127.0.0.1:54373> remote=/127.0.0.1:2181 <http://127.0.0.1:2181> ]
> WARN - [SendThread:[EMAIL PROTECTED] - Closing:
> java.io.IOException: TIMED OUT
> at com.yahoo.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:666)
> null: 0--1
> WARN - [SendThread:[EMAIL PROTECTED] - Trying to connect to
> /127.0.0.1:2181 <http://127.0.0.1:2181>
> WARN - [SendThread:[EMAIL PROTECTED] - Priming connection to
> java.nio.channels.SocketChannel[connected local=/127.0.0.1:54374
> <http://127.0.0.1:54374> remote=/127.0.0.1:2181 <http://127.0.0.1:2181> ]
> WARN - [SendThread:[EMAIL PROTECTED] - Closing:
> java.io.IOException: TIMED OUT
> at com.yahoo.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:666)
> null: 0--1
> WARN - [SendThread:[EMAIL PROTECTED] - Trying to connect to
> /127.0.0.1:2181 <http://127.0.0.1:2181>
> WARN - [SendThread:[EMAIL PROTECTED] - Priming connection to
> java.nio.channels.SocketChannel[connected local=/127.0.0.1:54375
> <http://127.0.0.1:54375> remote=/127.0.0.1:2181 <http://127.0.0.1:2181> ]
> scbmac:~/zookeeper $
>
>
> SERVER
> -------------
>
> scbmac:~/zookeeper $ java -cp zookeeper-dev.jar:java/lib/log4j-1.2.15.jar:conf
> com.yahoo.zookeeper.server.quorum.QuorumPeer conf/zoo.cfg
> WARN - [NIOServerCxn.Factory:[EMAIL PROTECTED] - Connected to
> /127.0.0.1:54372 <http://127.0.0.1:54372> lastZxid 0
> WARN - [NIOServerCxn.Factory:[EMAIL PROTECTED] - Creating new session
> 11b9e52f33a0000
> WARN - [SyncThread:[EMAIL PROTECTED] - Finished init of 11b9e52f33a0000:
> true
> WARN - [NIOServerCxn.Factory:[EMAIL PROTECTED] - Connected to
> /127.0.0.1:54373 <http://127.0.0.1:54373> lastZxid 0
> WARN - [NIOServerCxn.Factory:[EMAIL PROTECTED] - Creating new session
> 11b9e52f33a0001
> WARN - [SyncThread:[EMAIL PROTECTED] - Finished init of 11b9e52f33a0001:
> true
> WARN - [SessionTracker:[EMAIL PROTECTED] - Expiring 11b9e52f33a0000
> WARN - [ProcessThread:[EMAIL PROTECTED] - Processed session
> termination request for id: 11b9e52f33a0000
> WARN - [NIOServerCxn.Factory:[EMAIL PROTECTED] - Connected to
> /127.0.0.1:54374 <http://127.0.0.1:54374> lastZxid 0
> WARN - [NIOServerCxn.Factory:[EMAIL PROTECTED] - Creating new session
> 11b9e52f33a0002
> WARN - [SyncThread:[EMAIL PROTECTED] - Finished init of 11b9e52f33a0002:
> true
> WARN - [SessionTracker:[EMAIL PROTECTED] - Expiring 11b9e52f33a0001
> WARN - [ProcessThread:[EMAIL PROTECTED] - Processed session
> termination request for id: 11b9e52f33a0001
> WARN - [NIOServerCxn.Factory:[EMAIL PROTECTED] - Connected to
> /127.0.0.1:54375 <http://127.0.0.1:54375> lastZxid 0
> WARN - [NIOServerCxn.Factory:[EMAIL PROTECTED] - Creating new session
> 11b9e52f33a0003
> WARN - [SyncThread:[EMAIL PROTECTED] - Finished init of 11b9e52f33a0003:
> true
> WARN - [SessionTracker:[EMAIL PROTECTED] - Expiring 11b9e52f33a0002
> WARN - [ProcessThread:[EMAIL PROTECTED] - Processed session
> termination request for id: 11b9e52f33a0002
> scbmac:~/zookeeper $
>
>
> On Thu, Aug 7, 2008 at 10:53 AM, Mahadev Konar <[EMAIL PROTECTED]> wrote:
>> For your example, do you see anything unusual in the server logs? Also did
>> you try --
>>
>> Echo "stat" | nc localhost 2181
>> Echo "stat" | nc hostname 2181?
>>
>>
>>
>> mahadev
>>
>>
>>
>> On 8/7/08 10:11 AM, "Satish Bhatti" <[EMAIL PROTECTED]
>> <http://[EMAIL PROTECTED]> > wrote:
>>
>>> Yeah, it works great on Ubuntu. Did you try it out on your Mac yet?
>>>
>>> Satish
>>>
>>> On Wed, Aug 6, 2008 at 6:08 PM, Mahadev Konar <[EMAIL PROTECTED]
>>> <http://[EMAIL PROTECTED]> > wrote:
>>>> In that case it looks like some problem with Mac os. I have a leopard os as
>>>> well. I can try it out. Does your example woork on your ubuntu machine?
>>>>
>>
>> -------------------------------------------------------------------------
>> 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
>>
>
>
-------------------------------------------------------------------------
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