HBase使用初体验
2011-05-18叔宝@
搜索中心
Agenda
????QConNoSQL简介HBase介绍HBase@搜索中心遇到的
问题 NoSQL@Qcon
?NoSQLs:Key/Value
–Facebook,Twitter:HBase线上每月25T消息hbase+haystack–Sina:My
sql->Mysql+Redis5wqps–豆瓣:BeansDB记录为几K~几M之间–淘宝:tair–百度:bailingDB千亿网页存储–人人:NuclearDynamo–QQMail:SimpleDB支持业务的cache–视觉中国:MongoDB
HBase介绍
?????BackgroundDataModelArchitectureFeaturesHbaseAPI
Background
?BigTable?Hadoop
Background
WhatisHBase
?????Column-orientedsemi-structureddatastoreDistributedLayeredoverHDFSTolerantofmachinefailureStrongconsistency
Fromfacebook
DataModel
?Basicconcept
–Table–Row(全局有序)–Column=Family+qualifier(不固定)–Timestamp(version)–Cell–region
DataModel(cnt.)
Table:User-Friends
InfoRow(Uid)Friends
Name
Sex
Age
…
1
3
4
…
12
JohnSmith
M
23
Bf
3
4
Lily
Lucy
F
F
22
22
Gf
Sister
Sister
DataModel(cnt.)
?PhysicalStorage
InfoRow(Uid)Friends
Name
Sex
Age
…
1
3
4
…
12
JohnSmith
M
23
Bf
3
4
Lily
Lucy
F
F