12. HBase
Region Row Keys Column Family • region
“Content:”
Region 1 00000 … – Region startKey
00001 … endKey
… … • region
09999 …
Region 2 10000 … HDFS
… … region Hadoop
… …
29999 …
Classification Copyright 2009 - Trend Micro Inc.
13. HBase
• Region Servers
– request (write/read/scan)
– heartbeat master
– region servers throughput
• HBase Master
– region servers
– regions region servers
– region server
– master single point of failure
Classification Copyright 2009 - Trend Micro Inc.
14. HBase
ROOT
Region
Server
META
Region 1
Region
Server
Region 2
Master
Region 3
Region
Server
HRPC HRPC Region 4
Clients Region Region 5
Server
Region 6
Classification Copyright 2009 - Trend Micro Inc.
15. HBase Client Interface
• Java client
– get(byte [] row, byte [] column, long timestamp, int versions);
• Non-Java clients
– Thrift server
• Sample ruby, c++, & java (via thrift) clients
– REST server
• TableInput/OutputFormat for MapReduce
• HBase Shell
– ./bin/hbase shell YOUR_SCRIPT
Classification Copyright 2009 - Trend Micro Inc.
16. • Google BigTable
– http://labs.google.com/papers/bigtable.html
• HBase
– http://hadoop.apache.org/hbase/
• HBase wiki
– http://wiki.apache.org/hadoop/Hbase
Classification Copyright 2009 - Trend Micro Inc.