I am using the 2.2.1 version of ZooKeeper.   My zoo.cfg file is:

# The number of milliseconds of each tick
tickTime=2000

# the directory where the snapshot is stored.
dataDir=/Users/satish/zookeeper/server1/data/

# the port at which the clients will connect
clientPort=2181

The command line I am using for the server is:

java -cp zookeeper-dev.jar:java/lib/log4j-1.2.15.jar:conf
com.yahoo.zookeeper.server.quorum.QuorumPeer conf/zoo.cfg

and for the client:

java -cp zookeeper-dev.jar:java/lib/log4j-1.2.15.jar:conf
com.yahoo.zookeeper.ZooKeeper 127.0.0.1:2181

Here is what I get on the client end:

WARN  - [SendThread:[EMAIL PROTECTED] - Trying to connect to /
127.0.0.1:2181
WARN  - [SendThread:[EMAIL PROTECTED] - Priming connection to
java.nio.channels.SocketChannel[connected local=/127.0.0.1:63815 remote=/
127.0.0.1:2181]
null: 3--1


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
WARN  - [SendThread:[EMAIL PROTECTED] - Priming connection to
java.nio.channels.SocketChannel[connected local=/127.0.0.1:63816 remote=/
127.0.0.1:2181]
null: 3--1

create /test hello

Processing create
WARN  - [SendThread:[EMAIL PROTECTED] - Closing:
java.io.IOException: TIMED OUT
      at com.yahoo.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:666)
Exception in thread "main" com.yahoo.zookeeper.KeeperException:
KeeperErrorCode = ConnectionLoss for /test
      at com.yahoo.zookeeper.ZooKeeper.create(ZooKeeper.java:244)
      at com.yahoo.zookeeper.ZooKeeper.processCmd(ZooKeeper.java:788)
      at com.yahoo.zookeeper.ZooKeeper.main(ZooKeeper.java:745)

At this point the client exits.

Note the continuous stream of "null: 3--1" type errors.  Why is it
constantly having to reconnect to the server?  Finally, when I type in a
simple create command the client goes belly up and exits.  Even though I am
following the exact instructions in the SourceForge wiki, I figured maybe I
was doing something wrong, so I decided to run the unit tests.  Sure enough,
they also failed!


junit.run:
Warning: Reference test.classpath has not been set at runtime, but was found
during
build file parsing, attempting to resolve. Future versions of Ant may
support
referencing ids defined in non-executed targets.
  [junit] Running com.yahoo.zookeeper.server.DeserializationPerfTest
  [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 9.549 sec
  [junit] Running com.yahoo.zookeeper.server.SerializationPerfTest
  [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 6.78 sec
  [junit] Running com.yahoo.zookeeper.server.ZooKeeperServerTest
  [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.139 sec
  [junit] Running com.yahoo.zookeeper.test.AsyncTest
  [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 103.648 sec
  [junit] Test com.yahoo.zookeeper.test.AsyncTest FAILED
  [junit] Running com.yahoo.zookeeper.test.ClientTest
  [junit] Tests run: 4, Failures: 4, Errors: 0, Time elapsed: 140.248 sec
  [junit] Test com.yahoo.zookeeper.test.ClientTest FAILED
  [junit] Running com.yahoo.zookeeper.test.DataTreeTest
  [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.087 sec
  [junit] Running com.yahoo.zookeeper.test.OOMTest
  [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.014 sec
  [junit] Running com.yahoo.zookeeper.test.QuorumTest
  [junit] Tests run: 4, Failures: 3, Errors: 1, Time elapsed: 169.124 sec
  [junit] Test com.yahoo.zookeeper.test.QuorumTest FAILED
  [junit] Running com.yahoo.zookeeper.test.RecoveryTest
  [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 14.635 sec
  [junit] Test com.yahoo.zookeeper.test.RecoveryTest FAILED
  [junit] Running com.yahoo.zookeeper.test.SessionTest
  [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 32.542 sec
  [junit] Test com.yahoo.zookeeper.test.SessionTest FAILED

BUILD FAILED
/Users/satish/zookeeper/build.xml:336: The following error occurred while
executing this line:
/Users/satish/zookeeper/build.xml:314: Tests failed!

Total time: 9 minutes 4 seconds

Any ideas what's going on?

Satish
-------------------------------------------------------------------------
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

Reply via email to