From: Mahadev K. <ma...@ya...> - 2008-08-07 22:48:56
|
Hi Satish, This seems like a problem with svn 1.5 incompatibility with 1.4. The jira http://issues.apache.org/jira/browse/zookeeper-110 Fixes this issue but hasn¹t been checked in yet because its not compatible with windows. Can you try that patch and see if you can build it? mahadev On 8/7/08 3:31 PM, "Satish Bhatti" <cth...@gm...> wrote: > Hey Mahadev, > > I am having trouble building the version from apache trunk. > > version-info: > [java] All version-related parameters must be valid integers! > [java] Exception in thread "main" java.lang.NumberFormatException: For > input string: "" > [java] at > java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) > [java] at java.lang.Integer.parseInt(Integer.java:468) > [java] at java.lang.Integer.parseInt(Integer.java:497) > [java] at > org.apache.zookeeper.version.util.VerGen.main(VerGen.java:102) > [java] Java Result: 1 > > How does it get the version info? > > Satish > > On Thu, Aug 7, 2008 at 11:49 AM, Mahadev Konar <ma...@ya...> wrote: >> >> Hi satish, >> Its not the same and has quite a few changes. The one on apache hasn't been >> released yet. Can you download the trunk version and try it out? It will >> help us going through the logs and match the lines. This is just for >> debugging. For running in production I would still suggest using SF 2.2.1. >> <http://2.2.1.> >> >> mahadev >> >> >> On 8/7/08 11:45 AM, "Satish Bhatti" <cth...@gm... >> <http://cth...@gm...> > wrote: >> >>> Hey Mahadev >>> >>> I am using 2.2.1 from sourceforge. Is that the same one as the apache trunk >>> version? >>> >>> On Thu, Aug 7, 2008 at 11:12 AM, Mahadev Konar <ma...@ya... >>> <http://ma...@ya...> > wrote: >>>> 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" <cth...@gm... >>>> <http://cth...@gm...> <http://cth...@gm...> > 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:ClientCnxn$SendThread@639] - Trying to connect to >>>>> /127.0.0.1:2181 <http://127.0.0.1:2181> <http://127.0.0.1:2181> >>>>> <http://127.0.0.1:2181> >>>>> WARN - [SendThread:ClientCnxn$SendThread@568] - Priming connection to >>>>> java.nio.channels.SocketChannel[connected local=/127.0.0.1:54372 >>>>> <http://127.0.0.1:54372> <http://127.0.0.1:54372> >>>>> <http://127.0.0.1:54372> remote=/127.0.0.1:2181 <http://127.0.0.1:2181> >>>>> <http://127.0.0.1:2181> <http://127.0.0.1:2181> ] >>>>> >>>>> >>>>> WARN - [SendThread:ClientCnxn$SendThread@719] - Closing: >>>>> java.io.IOException: TIMED OUT >>>>> at >>>>> com.yahoo.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:666) >>>>> null: 0--1 >>>>> WARN - [SendThread:ClientCnxn$SendThread@639] - Trying to connect to >>>>> /127.0.0.1:2181 <http://127.0.0.1:2181> <http://127.0.0.1:2181> >>>>> <http://127.0.0.1:2181> >>>>> WARN - [SendThread:ClientCnxn$SendThread@568] - Priming connection to >>>>> java.nio.channels.SocketChannel[connected local=/127.0.0.1:54373 >>>>> <http://127.0.0.1:54373> <http://127.0.0.1:54373> >>>>> <http://127.0.0.1:54373> remote=/127.0.0.1:2181 <http://127.0.0.1:2181> >>>>> <http://127.0.0.1:2181> <http://127.0.0.1:2181> ] >>>>> >>>>> >>>>> WARN - [SendThread:ClientCnxn$SendThread@719] - Closing: >>>>> java.io.IOException: TIMED OUT >>>>> at >>>>> com.yahoo.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:666) >>>>> null: 0--1 >>>>> WARN - [SendThread:ClientCnxn$SendThread@639] - Trying to connect to >>>>> /127.0.0.1:2181 <http://127.0.0.1:2181> <http://127.0.0.1:2181> >>>>> <http://127.0.0.1:2181> >>>>> WARN - [SendThread:ClientCnxn$SendThread@568] - Priming connection to >>>>> java.nio.channels.SocketChannel[connected local=/127.0.0.1:54374 >>>>> <http://127.0.0.1:54374> <http://127.0.0.1:54374> >>>>> <http://127.0.0.1:54374> remote=/127.0.0.1:2181 <http://127.0.0.1:2181> >>>>> <http://127.0.0.1:2181> <http://127.0.0.1:2181> ] >>>>> >>>>> >>>>> WARN - [SendThread:ClientCnxn$SendThread@719] - Closing: >>>>> java.io.IOException: TIMED OUT >>>>> at >>>>> com.yahoo.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:666) >>>>> null: 0--1 >>>>> WARN - [SendThread:ClientCnxn$SendThread@639] - Trying to connect to >>>>> /127.0.0.1:2181 <http://127.0.0.1:2181> <http://127.0.0.1:2181> >>>>> <http://127.0.0.1:2181> >>>>> WARN - [SendThread:ClientCnxn$SendThread@568] - Priming connection to >>>>> java.nio.channels.SocketChannel[connected local=/127.0.0.1:54375 >>>>> <http://127.0.0.1:54375> <http://127.0.0.1:54375> >>>>> <http://127.0.0.1:54375> remote=/127.0.0.1:2181 <http://127.0.0.1:2181> >>>>> <http://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:NIOServerCnxn@471] - Connected to >>>>> /127.0.0.1:54372 <http://127.0.0.1:54372> <http://127.0.0.1:54372> >>>>> <http://127.0.0.1:54372> lastZxid 0 >>>>> >>>>> >>>>> WARN - [NIOServerCxn.Factory:NIOServerCnxn@500] - Creating new session >>>>> 11b9e52f33a0000 >>>>> WARN - [SyncThread:NIOServerCnxn@774] - Finished init of 11b9e52f33a0000: >>>>> true >>>>> WARN - [NIOServerCxn.Factory:NIOServerCnxn@471] - Connected to >>>>> /127.0.0.1:54373 <http://127.0.0.1:54373> <http://127.0.0.1:54373> >>>>> <http://127.0.0.1:54373> lastZxid 0 >>>>> >>>>> >>>>> WARN - [NIOServerCxn.Factory:NIOServerCnxn@500] - Creating new session >>>>> 11b9e52f33a0001 >>>>> WARN - [SyncThread:NIOServerCnxn@774] - Finished init of 11b9e52f33a0001: >>>>> true >>>>> WARN - [SessionTracker:SessionTrackerImpl@133] - Expiring 11b9e52f33a0000 >>>>> WARN - [ProcessThread:PrepRequestProcessor@341] - Processed session >>>>> termination request for id: 11b9e52f33a0000 >>>>> WARN - [NIOServerCxn.Factory:NIOServerCnxn@471] - Connected to >>>>> /127.0.0.1:54374 <http://127.0.0.1:54374> <http://127.0.0.1:54374> >>>>> <http://127.0.0.1:54374> lastZxid 0 >>>>> >>>>> >>>>> WARN - [NIOServerCxn.Factory:NIOServerCnxn@500] - Creating new session >>>>> 11b9e52f33a0002 >>>>> WARN - [SyncThread:NIOServerCnxn@774] - Finished init of 11b9e52f33a0002: >>>>> true >>>>> WARN - [SessionTracker:SessionTrackerImpl@133] - Expiring 11b9e52f33a0001 >>>>> WARN - [ProcessThread:PrepRequestProcessor@341] - Processed session >>>>> termination request for id: 11b9e52f33a0001 >>>>> WARN - [NIOServerCxn.Factory:NIOServerCnxn@471] - Connected to >>>>> /127.0.0.1:54375 <http://127.0.0.1:54375> <http://127.0.0.1:54375> >>>>> <http://127.0.0.1:54375> lastZxid 0 >>>>> >>>>> >>>>> WARN - [NIOServerCxn.Factory:NIOServerCnxn@500] - Creating new session >>>>> 11b9e52f33a0003 >>>>> WARN - [SyncThread:NIOServerCnxn@774] - Finished init of 11b9e52f33a0003: >>>>> true >>>>> WARN - [SessionTracker:SessionTrackerImpl@133] - Expiring 11b9e52f33a0002 >>>>> WARN - [ProcessThread:PrepRequestProcessor@341] - Processed session >>>>> termination request for id: 11b9e52f33a0002 >>>>> scbmac:~/zookeeper $ >>>>> >>>>> >>>>> On Thu, Aug 7, 2008 at 10:53 AM, Mahadev Konar <ma...@ya... >>>>> <http://ma...@ya...> <http://ma...@ya...> > 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" <cth...@gm... >>>>>> <http://cth...@gm...> <http://cth...@gm...> >>>>>> <http://cth...@gm...> > 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 <ma...@ya... >>>>>>> <http://ma...@ya...> <http://ma...@ya...> >>>>>>> <http://ma...@ya...> > 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 >>>>>> Zoo...@li... >>>>>> <http://Zoo...@li...> >>>>>> <http://Zoo...@li...> >>>>>> 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 >>>> Zoo...@li... >>>> <http://Zoo...@li...> >>>> 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 >> Zoo...@li... >> https://lists.sourceforge.net/lists/listinfo/zookeeper-user >> > > |