Setting up Zookeeper

What follows are instructions on how to install, configure and run Zookeeper in standalone and cluster mode.