Hi, I wrote a blog post and an example implementation on how to do single file leader election with zookeeper:
http://cyberroadie.wordpress.com/2011/12/20/zookeeper-single-file-leader-election-with-retry-logic/ https://github.com/cyberroadie/zk-leader-single-file please feel free to comments & reviews :-) Olivier
