What You'll Learn
You'll learn how HBase divides responsibilities among HMaster, RegionServers, and ZooKeeper to manage distributed data storage and operations.
HBase Architecture Components
HBase runs as a distributed system with three core components working together to store and serve data at scale.
HMaster: The Coordinator
HMaster acts like a manager in a warehouse system. It coordinates cluster operations, assigns regions (chunks of data) to RegionServers, and handles schema changes like creating or deleting tables. When RegionServers fail, HMaster reassigns their regions to healthy servers. However, HMaster doesn't handle actual data reads or writes—it's purely for administration and coordination.
Analogy: Think of HMaster as a warehouse manager who assigns sections to workers but never moves boxes themselves.
RegionServers: The Data Workers
RegionServers do the heavy lifting—they store and serve data. Each RegionServer manages multiple regions (contiguous ranges of rows from tables). When clients read or write data, they communicate directly with RegionServers, bypassing HMaster for performance. RegionServers handle the write path (commit log and memstore) and read path (checking memstore and SSTables) that you learned about earlier.
Analogy: RegionServers are the warehouse workers who actually store and retrieve items from shelves.
ZooKeeper: The Distributed Coordinator
ZooKeeper provides critical coordination services. It tracks which RegionServers are alive, stores metadata about where regions are located, helps with leader election for HMaster, and maintains cluster configuration. Clients first contact ZooKeeper to discover which RegionServer holds the data they need.
Analogy: ZooKeeper is like a warehouse's inventory system—it knows where everything is and which workers are currently available.
Key Takeaway: HBase distributes work among HMaster (coordination), RegionServers (data storage and serving), and ZooKeeper (distributed state management), creating a scalable architecture where each component has a specialized role.