成都网站建设设计

将想法与焦点和您一起共享

搭建zoopker+hbase环境

继续上一篇hadoop的安装。

乌达网站制作公司哪家好,找创新互联公司!从网页设计、网站建设、微信开发、APP开发、响应式网站设计等网站项目制作,到程序开发,运营维护。创新互联公司于2013年开始到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联公司

一、安装zookooper

1、解压zookooper

tar -zxfv zookeeper-3.3.6.tar.gz

2、修改配置:

cp zookeeper/conf/zoo_sample.cfg 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.

dataDir=/usr/zookeeper-3.3.6/data

the port at which the clients will connect

clientPort=2181
#autopurge.purgeInterval=1

server.1=192.168.1.101:2888:3888
server.2=192.168.1.102:2888:3888

3、在/usr/zookeeper-3.3.6/data 目录下文件myid 写入1(要根据ip地质对应起来)

4、scp -r /usr/zookeeper-3.3.6 ~slave:/usr

5 分别在master \slave1上启动zoopker

二、安装hbase

1、解压 tar -zxvf hbase-1.3.1-bin.tar.gz

2、修改hbase.env.sh 增加JAVA_HOME ,export HBASE_MANAGES_ZK=false

3、修改regionservers 增加

master

slave1

4、修改hbase-site.xml



hbase.rootdir
hdfs://master:9000/hbase


hbase.cluster.distributed
true


hbase.zookeeper.quorum
master,slave1


hbase.master
hdfs://master:60000


hbase.zookeeper.property.dataDir
/usr/zookeeper-3.3.6/data


hbase.zookeeper.property.clientPort
2181

5、 scp /usr/hbase slave1:/usr

6、启动


hbase.rootdir
hdfs://master:9000/hbase


hbase.cluster.distributed
true


hbase.zookeeper.quorum
master,slave1


hbase.master
hdfs://master:60000


hbase.zookeeper.property.dataDir
/usr/zookeeper-3.3.6/data


hbase.zookeeper.property.clientPort
2181


网站标题:搭建zoopker+hbase环境
URL链接:http://chengdu.cdxwcx.cn/article/gdsege.html