Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Eurosys 2011 Tutorial

Tutorial slides

Code and library

To complete this tutorial you will need the ZooKeeper 3.3.3 "fat" jar. This has all you need to run zookeeper and develop against it.

Example skeleton code:

Running the ZooKeeper server

...

Code Block
[zk: 127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183(CONNECTED) 0] create /assign ""
Created /assign
[zk: 127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183(CONNECTED) 1] create /tasks ""
Created /tasks
[zk: 127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183(CONNECTED) 2] ls /
[assign, tasks, zookeeper]

Tutorial slides

...