Tags
Root and meta tables
Before Version 0.9.6, the root table exists. In later versions, the root table is removed. The Meta table mainly records the distribution of each table in region.
Meta Structure
As shown in the table, the rowkey format is tablename, startkey, timestamp, and the main column cluster of the Meta table is info. The Info: regioinfo column contains the main information of region. Info: the server contains the address and port used to change the region.
When the meta table is too large (you do not know how to deal with the meta table that is not the root table), the meta table is also divided into region and stored in different regionservers, this is to use the root table to retrieve the meta table.
Client Connected to hbase through three connections,
- The client connects to zookeeper to obtain the regionserver address of the root table.
- The client connects to the specific regionserver and obtains the address of the regionserver In the meta table from the root table.
- The client connects to the specific regionserver to obtain the address of the regionserver of the specific data.
- The client connects to the regionserver to operate data.
The entire connection process does not involve the connection to the hmaster, so it does not cause pressure on the hmaster.
Hbase-connection process