---
title: "3、Hbase"
author: "nickfover"
date: "2014-11-13T15:24:45Z"
tags: []
categories: ["开源软件"]
slug: "3-hbase"
draft: false
lastmod: "2014-11-13T15:24:45Z"
id: 2155492
url: "https://nickfover.iteye.com/blog/2155492"
---

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` = "&lt;html&gt;..." "com.cnn.www" t5 `contents:html` = "&lt;html&gt;..." "com.cnn.www" t3 `contents:html` = "&lt;html&gt;..."

这是两张表，合成一张表后：

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` = "&lt;html&gt;..."   "com.cnn.www" t5 `contents:html` = "&lt;html&gt;..."   "com.cnn.www" t3 `contents:html` = "&lt;html&gt;..."  

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