欢迎投稿

今日深度:

3、Hbase,

3、Hbase,


hbase---Hadopp database

 

HBase的数据模式

将众多表按行健和时间戳合并成一个虚表,形成一个“BigTable”

Row Key Time Stamp Column Family anchor
"com.cnn.www" t9 anchor:cnnsi.com = "CNN"
"com.cnn.www" t8 anchor:my.look.ca = "CNN.com"

 

Row Key Time Stamp ColumnFamily "contents:"
"com.cnn.www" t6 contents:html = "<html>..."
"com.cnn.www" t5 contents:html = "<html>..."
"com.cnn.www" t3 contents:html = "<html>..."

这是两张表,合成一张表后:

Row Key Time Stamp ColumnFamily contents ColumnFamily anchor
"com.cnn.www" t9   anchor:cnnsi.com = "CNN"
"com.cnn.www" t8   anchor:my.look.ca = "CNN.com"
"com.cnn.www" t6 contents:html = "<html>..."  
"com.cnn.www" t5 contents:html = "<html>..."  
"com.cnn.www" t3 contents:html = "<html>..."  

每个行健可以使多行,以时间戳作为版本区分,列族中的列可以往后增加;

 

 

www.htsjk.Com true http://www.htsjk.com/hbase/40238.html NewsArticle 3、Hbase, hbase---Hadopp database   HBase的数据模式 将众多表按行健和时间戳合并成一个虚表,形成一个“BigTable” Row Key Time Stamp Column Family  anchor "com.cnn.www" t9 anchor:cnnsi.com  = "CNN" "com.cnn....
相关文章
    暂无相关文章
评论暂时关闭