hbase 基本架构
版本选用
hbase 定位
与hadoop对接
|
|
与zookeeper对接
hbase 自带的zookeeper
hbase-env.sh
|
|
startup
When HBase manages ZooKeeper, it will start/stop the ZooKeeper servers as a part of the regular start/stop scripts. If you would like to run ZooKeeper yourself, independent of HBase start/stop, you would do the following
|
|
外部的zookeeper
hbase-env.sh12# Tell HBase whether it should manage its own instance of ZooKeeper or not.export HBASE_MANAGES_ZK=false
hbase-site.xml
|
|
单机配置与安装
存储在本地文件
|
|
存储在HDFS
|
|
伪分布式配置与安装
hbase-site.xml12345678<property> <name>hbase.rootdir</name> <value>hdfs://localhost:8020/hbase</value></property><property> <name>hbase.cluster.distributed</name> <value>true</value></property>
分布式安装
Node Name | Master | ZooKeeper | RegionServer |
---|---|---|---|
node-a.example.com | yes | yes | no |
node-b.example.com | backup | yes | yes |
node-c.example.com | no | yes | yes |
hbase-site.xml
|
|
conf/regionservers123node-a.example.comnode-b.example.comnode-c.example.com
conf/backup-masters12node-b.example.comnode-c.example.com