I have cluster setup of Hbase:
1 HMaster Node and 3 Region Servers
I would like to know that: When we insert the multiple rows in table, than how Hbase split the records across multiple regionServer ?
Does Hfile has sorted key value records(rowKey:cf:TimeStamp) ?
If yes than How Hbase maintain the sorted key order in Transaction Table.
I read that META table mentain the table information like (Table_name, Region(StartKey-EndKey)) is it correct ?
I’m a bit confused by your questions, but when you insert multiple rows into tables, lookups are made to the
.META.table to find which region should get the mutations and the client then sends it to the corresponding hbase regionserver.HFiles are indeed sorted files with keyvalues, which look more like
http://hbase.apache.org/book/hfilev2.html
http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/KeyValue.html
Sorting occurs in all compactions i.e. when you add a row it is added to the
memtable, which once filled with enough rows in thememtableit will sort them and dump them to aHFile(i.e Merge compaction). When multiple HFiles exist for aregionHBase will merge them all together in a sorted fashion (called Major Compaction).The META Table maintains Region information, such as table name, region start key, end key, and which server is serving it.