HBase
HBase是一个分布式的、面向列的开源数据库
安装
- 下载 https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/
- tar -zxcv xxx.tar.gz -C /usr/local/
- vi conf/hbase-env.sh 修改export JAVA_HOME=/usr/local/jvm/java
vi conf/hbase-site.xml
hbase.rootdir /home/hbase 启动HBase bin/start-hbase.sh
- 用shell来连接HBase bin/hbase shell
shell实践
- ./bin/hbase shell
- create 'table1','col1'
- list
- put 'table1','row1','col1:a','value1' put 'table1','row2','col1:b','value2' put 'table1','row3','col1:c','value3'
- scan 'table1'
- get 'table1','row1'
- disable 'table1'
- drop 'table1'
rest
./bin/hbase rest start & 启动hbase的rest