ZooKeeper is a centralized, reliable, service for maintaining
configuration information, naming, providing distributed
synchronization, and group services. All of these kinds of services
are used in some form or another by distributed applications. This
package contains the shell scripts and an example configuration but
does not automatically start up the service. The example configuration
is installed with the update-alternatives mechanism.
- database ›
Apache ZooKeeper is a service for coordinating processes of distributed
ZooKeeper is a centralized service for maintaining configuration information,
naming, providing distributed synchronization, and providing group services.
All of these kinds of services are used in some form or another by distributed
applications. Each time they are implemented there is a lot of work that goes
into fixing the bugs and race conditions that are inevitable. Because of the
difficulty of implementing these kinds of services, applications initially
usually skimp on them, which make them brittle in the presence of change and
difficult to manage. Even when done correctly, different implementations of
these services lead to management complexity when the applications are
To use the charm bootstrap your Juju environment and deploy:
juju deploy zookeeper
You can use a network utility called netcat (nc) to verify that ZooKeeper is
running and OK. Use the
juju status command to get the ZooKeeper IP address.
nc $ZOOKEEPER_IP $ZOOKEEPER_PORT stat nc $ZOOKEEPER_IP $ZOOKEEPER_PORT ruok
These commands tests if server is running in a non-error state. The server
will respond with
imok if it is running or it will not respond at all.
Apache ZooKeeper information
- (int) default group
- (int) default weight
- (string) Extra servers ( external to juju ) to add to zoo.cnf. Format should be id:group:weight:host:port:port group can be defined as "default" as opposed to a number to use the default_group defined above
- (string) Location and packages to install zookeeper: . * archive: Install using the zookeeperd package from the main Ubuntu Archive. * dev: Install using the hadoop-zookeeper-server package from ppa:hadoop-ubuntu/dev. * testing: Install using the hadoop-zookeeper-server package from ppa:hadoop-ubuntu/testing. * stable: Install using the hadoop-zookeeper-server package from ppa:hadoop-ubuntu/stable. . The packages provides in the hadoop-ubuntu team PPA's are based directly on upstream ZooKeeper releases but are not fully built from source.
- (int) ZooKeeper Client Access Port