首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

hbase shell 简略使用

2012-07-24 
hbase shell 简单使用hing@hing-host:~/hbase-0.90.3/bin$?./start-hbase.sh?starting master, logging to

hbase shell 简单使用

hing@hing-host:~/hbase-0.90.3/bin$?./start-hbase.sh?
starting master, logging to /home/hing/hbase-0.90.3/bin/../logs/hbase-hing-master-hing-host.out
hing@hing-host:~/hbase-0.90.3/bin$?./hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell

Version 0.90.3, r1100350, Sat May ?7 13:31:12 PDT 2011

hbase(main):006:0>?create 'test', 'person', 'address'
0 row(s) in 1.7620 seconds

hbase(main):007:0>?put 'test', 'hing', 'person:name', 'hing'
0 row(s) in 0.4530 seconds

hbase(main):008:0>?put 'test', 'hing', 'person:age', '28'???
0 row(s) in 0.2460 seconds

hbase(main):009:0>?put 'test', 'hing', 'address:position', 'haidian'
0 row(s) in 0.2290 seconds

hbase(main):010:0>?put 'test', 'hing', 'address:zipcode', '100085'??
0 row(s) in 0.2440 seconds

hbase(main):011:0>?scan 'test'
ROW ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?COLUMN+CELL ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?column=address:position, timestamp=1312785325139, value=haidian ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?column=address:zipcode, timestamp=1312785373834, value=100085 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?column=person:age, timestamp=1312785294970, value=28 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?column=person:name, timestamp=1312785267890, value=hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
1 row(s) in 0.3200 seconds

hbase(main):013:0>?put 'test', 'forward', 'person:name', 'forward'??
0 row(s) in 0.2370 seconds

hbase(main):014:0>?put 'test', 'forward', 'person:age', '27'?? ? ? ?
0 row(s) in 0.2380 seconds

hbase(main):015:0>?put 'test', 'forward', 'address:position', 'xicheng'
0 row(s) in 0.2350 seconds


hbase(main):004:0>?put 'test', 'forward', 'address:zipcode', '1000xx'
0 row(s) in 0.2390 seconds

hbase(main):005:0>?scan 'test'
ROW ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?COLUMN+CELL ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?forward ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? column=address:position, timestamp=1312785485133, value=xicheng ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?forward ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? column=address:zipcode, timestamp=1312785601801, value=1000xx ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?forward ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? column=person:age, timestamp=1312785467672, value=27 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?forward ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? column=person:name, timestamp=1312785448305, value=forward ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?column=address:position, timestamp=1312785325139, value=haidian ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?column=address:zipcode, timestamp=1312785585864, value=100085 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?column=person:age, timestamp=1312785294970, value=28 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?column=person:name, timestamp=1312785267890, value=hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
2 row(s) in 0.3040 seconds

hbase(main):001:0>?get 'test', 'hing'
COLUMN ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? CELL ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?address:position ? ? ? ? ? ? ? ? ? ? ? ?timestamp=1312785325139, value=haidian ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?address:zipcode ? ? ? ? ? ? ? ? ? ? ? ? timestamp=1312785585864, value=100085 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?person:age ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?timestamp=1312785294970, value=28 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?person:name ? ? ? ? ? ? ? ? ? ? ? ? ? ? timestamp=1312785267890, value=hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
4 row(s) in 0.9340 seconds

hbase(main):003:0>?get 'test', 'hing', {COLUMNS => 'address'}?
COLUMN ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? CELL ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?address:position ? ? ? ? ? ? ? ? ? ? ? ?timestamp=1312785325139, value=haidian ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?address:zipcode ? ? ? ? ? ? ? ? ? ? ? ? timestamp=1312785585864, value=100085 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
2 row(s) in 0.5050 seconds

hbase(main):007:0>?scan 'test', {COLUMN => 'person'}
ROW ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?COLUMN+CELL ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?forward ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? column=person:age, timestamp=1312785467672, value=27 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?forward ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? column=person:name, timestamp=1312785448305, value=forward ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?column=person:age, timestamp=1312785294970, value=28 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?column=person:name, timestamp=1312785267890, value=hing ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
2 row(s) in 0.3020 seconds

hbase(main):008:0>?list
TABLE ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
employees ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
scores ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
test ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
tt ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
4 row(s) in 0.4840 seconds

hbase(main):010:0>?disable 'test'
0 row(s) in 1.5070 seconds

hbase(main):011:0>?drop 'test'
0 row(s) in 1.8220 seconds

hbase(main):012:0>?list
TABLE ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
employees ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
scores ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
tt ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
3 row(s) in 0.2670 seconds

hbase(main):013:0>?exit
hing@hing-host:~/hbase-0.90.3/bin$?./stop-hbase.sh?
stopping hbase.......
hing@hing-host:~/hbase-0.90.3/bin$?

转载文章,收藏学习:http://blog.csdn.net/renren000/article/details/6669246

热点排行