From Surf Wiki (app.surf) — the open knowledge base
Apache ZooKeeper
System for distributed coordination
System for distributed coordination
| Field | Value |
|---|---|
| name | Apache ZooKeeper |
| logo | Apache ZooKeeper logo.svg |
| developer | Apache Software Foundation |
| latest release version | |
| latest release date | ; |
| operating system | Cross-platform |
| repo | |
| programming language | Java |
| genre | Distributed computing |
| license | Apache License 2.0 |
| website |
Apache ZooKeeper is an open-source server for highly reliable distributed coordination of cloud applications. It is a project of the Apache Software Foundation.
ZooKeeper is essentially a service for distributed systems offering a hierarchical key-value store, which is used to provide a distributed configuration service, synchronization service, and naming registry for large distributed systems (see Use cases). ZooKeeper was a sub-project of Hadoop but is now a top-level Apache project in its own right.
Overview
ZooKeeper's architecture supports high availability through redundant services. Clients can ask another ZooKeeper leader if the first fails to answer. ZooKeeper nodes store their data in a hierarchical name space, like a file system or a tree data structure. Clients can read from and write to the nodes and in this way have a shared configuration service. ZooKeeper can be viewed as an atomic broadcast system, through which updates are totally ordered. The ZooKeeper Atomic Broadcast (ZAB) protocol is the core of the system.
ZooKeeper is used by companies including Yelp, Rackspace, Yahoo!, Odnoklassniki, Reddit, NetApp SolidFire, Meta, Twitter and eBay as well as open source enterprise search systems like Solr and distributed database systems like Apache Pinot.
ZooKeeper is modeled after Google's Chubby lock service and was originally developed at Yahoo! for streamlining the processes running on big-data clusters by storing the status in local log files on the ZooKeeper servers. These servers communicate with client machines to deliver the required information. ZooKeeper was developed to address issues that emerged during the deployment of distributed big-data applications.
Some of the prime features of Apache ZooKeeper are:
- Reliable System: the system keeps working even if some nodes stop working.
- Simple Architecture: there is a shared hierarchical namespace which helps coordinating the processes.
- Fast Processing: especially fast in "read-dominant" workloads (i.e. workloads in which reads are much more common than writes).
- Scalable: performance can be improved by adding nodes.
Architecture
Some common terminologies regarding the ZooKeeper architecture:
- Node: the systems installed on the cluster
- ZNode: the nodes where the status is updated by other nodes in cluster
- Client applications: the tools that interact with the distributed applications
- Server applications: allow the client applications to interact using a common interface
The services in the cluster are replicated and stored on a set of servers (called an "ensemble"), each of which maintains an in-memory database containing the entire data tree of state as well as a transaction log and snapshots stored persistently. Multiple client applications can connect to a server, and each client maintains a TCP connection through which it sends requests and heartbeats and receives responses and watch events for monitoring.
Use cases
Typical use cases for ZooKeeper are:
- Naming service
- Configuration management
- Data Synchronization
- Leader election
- Message queue
- Notification system
Client libraries
In addition to the client libraries included with the ZooKeeper distribution, several third-party libraries, including Apache Curator and Kazoo, extend ZooKeeper's capabilities. These libraries offer enhanced ease of use, additional features and support for a broader range of programming languages.
Apache projects using ZooKeeper
- Apache Hadoop
- Apache Accumulo
- Apache HBase
- Apache Hive
- Apache Kafka (up to version 4.0.0)
- Apache Drill
- Apache Solr
- Apache Spark
- Apache NiFi
- Apache Druid
- Apache Helix
- Apache Pinot
- Apache Bookkeeper
- Apache Pulsar
References
References
- "Apache Zookeeper4".
- "Index - Apache ZooKeeper - Apache Software Foundation".
- "Zookeeper Overview".
- "ZooKeeper/Powered By".
- (16 August 2016). "Why Reddit was down on Aug 11".
- (2016-06-20). "5 Big DaaS Challenges and How to Overcome Them {{!}} NetApp Newsroom". NetApp Newsroom.
- (2018-07-19). "Location-Aware Distribution: Configuring servers at scale". Facebook Code.
- (2018-10-11). "ZooKeeper at Twitter". Twitter Engineering Blog.
- "SolrCloud".
- "Apache Pinot: Architecture".
- Burrows, Mike. (2006). "The Chubby lock service for loosely-coupled distributed systems". 7th USENIX Symposium on Operating Systems Design and Implementation (OSDI).
- (2007). "Paxos Made Live - An Engineering Perspective (2006 Invited Talk)".
- "Apache Zookeeper 3.9 Documentation".
- "Apache Kafka".
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about Apache ZooKeeper — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report