一个student表,表的逻辑模型如下:行键为学号,时间戳是自动添加的,列族name是名字,列族score是各科分数。行键是唯一的。
行键
时间戳
列族name
列族score
20130001
T2
'zhangsan'
T3
score:Chinese='90'
T4
score:English='80'
20130002
T5
'lisi'
T6
score:Chinese='95'
......
Tn
进入HBase的shell:
[coder@h1 hbase-0.90.5]$ bin/hbase shell
HBase Shell; enter 'help' forlist of supported commands.
Type"exit"to leave the HBase Shell
Version0.90.5, r1212209, Fri Dec 9 05:40:36 UTC 2011hbase(main):001:0>
1、创建student表
hbase(main):002:0>create 'student','name','score'0 row(s) in 2.0570seconds
hbase(main):003:0>
student:表名
name:列族<