列式数据库HBase搭建

为了不让我集群压力太大,所以我就用了一个两台机子的集群,简单介绍下集群的架构。
这里写图片描述
集群没有任何一个地方设置了高可用,只是在h-slave上安装了zookeeper而已,之前一直有个误区,为了安装hbase引入zookeeper,以为一定要实现集群某个方面的高可用,后面经过实验才发现完全是多余的。

HBase是安在我之前的hadoop集群中的,这次新装了zookeeper和hbase而已,在之前的文章中我介绍过了整个集群的配置。
hadoop集群配置

1.zookeeper
只安装在了h-slave上,还是老一套的解压缩,配置环境变量。需要在zookeeper安装目录的conf新建文件zoo.cfg,主要配置最后一行,此处我的集群只有一个zookeeper server就写1,再写上对应的主机名,端口号。
“`
[hadoop@h-slave conf]$ cat zoo.cfg

The number of milliseconds of each tick

tickTime=2000

The number of ticks that the initial

synchronization phase can take

initLimit=10

The number of ticks that can pass between

sending a request and getting an acknowledgement

syncLimit=5

the directory where the snapshot is stored.

do not use /tmp for storage, /tmp here is just

example sakes.

dataDir=/tmp/zookeeper ՚ţµŖ

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值