Hello hbase

Download Configure

1
2
3
4
5
6
7
8
9
10
11
sudo curl -O http://mirrors.hust.edu.cn/apache/hbase/1.3.0/hbase-1.3.0-bin.tar.gz

sudo tar -xzvf hbase-1.3.0-bin.tar.gz

sudo vim conf/hbase-env.sh
> export JAVA_HOME=/usr/lib/jdk1.8.0_121
> export HBASE_CLASSPATH=/usr/lib/hbase-1.3.0/lib

sudo bash bin/start-hbase.sh

more logs/hbase-root-master-raspberrypi.log

Have a try

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
bin/hbase shell

create 'PageViews', 'info'

list

descibe 'PageViews'

put 'PageViews', 'rowkey1', 'info:page', '/mypage'

put 'PageViews', 'rowkey1', 'info:count', '7'

get 'PageViews', 'rowkey1'

put 'PageViews', 'rowkey2', 'info:page', '/myotherpage'

put 'PageViews', 'srowkey2', 'info:page', '/myotherpage'

scan 'PageViews', {STARTROW=>'r', ENDROW=>'s'}

scan 'PageViews', {STARTROW=>'r'}