Accepted answer

The simple answer would be to tell you that ZooKeeper is not meant to be used as a general datastore/database; however, I am inclined to believe that you are really looking for something like MongoDB.

Check out MongoDB Replica Sets and Election/Voting. This should give you want you want. Much easier to manage than ZooKeeper and more useful for general application data storage needs.

Related Query

More Query from same tag