下载 : hbase 0.20
hadoop 搭建好后 :
cp 到 /data/app/hadoop-0.20.2/contrib/hbase
修改 hbase-site.xml :
<configuration>
<property>
<name>hbase.master</name>
<value>localhost:60000</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000/hbase</value>
</property>
</configuration>
|
启动 :
/data/app/hadoop-0.20.2/contrib/hbase/bin/start-hbase.sh
/data/app/hadoop-0.20.2/contrib/hbase/bin/hbase shell
> create 't1', {NAME => 'f1', VERSIONS => 5}
> put 't1', "test\xef\xff", 'f1:', "\x01\x33\x40"
> get 't1', "test\xef\xff"
COLUMN CELL
f1: timestamp=1282643907536, value=\x013@
阅读(811) | 评论(0) | 转发(0) |