windows HBase 安装
本文转载自 https://www.cnblogs.com/davidwang456/p/9026519.html
下载目前最新版本
http://mirrors.hust.edu.cn/apache/hbase/stable/
最新版本
hbase-1.2.6
1. 解压到D:\software\hbase-1.2.6
进入conf目录
配置hbase-site.xml文件
<configuration> <property> <name>hbase.rootdir</name> <value>file:///D:/software/hbase-1.2.6/data</value> </property> <property> <name>hbase.tmp.dir</name> <value>D:/software/hbase-1.2.6/data/tmp</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>127.0.0.1</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>D:/software/hbase-1.2.6/data/zoo</value> </property> <property> <name>hbase.cluster.distributed</name> <value>false</value> </property> </configuration>
进入到bin目录
运行:
start-hbase.cmd
2.测试
执行 bin>hbase shell
hbase(main):001:0> create 'mytable', 'data' 0 row(s) in 1.1420 seconds => Hbase::Table - mytable hbase(main):002:0> put 'mytable', 'row1', 'data:1', 'value1' 0 row(s) in 0.0580 seconds hbase(main):003:0> put 'mytable', 'row2', 'data:2', 'value2' 0 row(s) in 0.0090 seconds hbase(main):004:0> put 'mytable', 'row3', 'data:3', 'value3' 0 row(s) in 0.0080 seconds hbase(main):005:0> list TABLE mytable 1 row(s) in 0.0200 seconds => ["mytable"] hbase(main):006:0> scan 'mytable' ROW COLUMN+CELL row1 column=data:1, timestamp=1416554699558, value=value1 row2 column=data:2, timestamp=1416554715456, value=value2 row3 column=data:3, timestamp=1416554730255, value=value3 3 row(s) in 0.0520 seconds
mac HBase 安装
https://www.jianshu.com/p/510e1d599123
http://localhost:16010/master-status