温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

搭建zoopker+hbase 环境

发布时间:2020-03-03 12:48:59 来源:网络 阅读:272 作者:苍天火云 栏目:大数据

继续上一篇hadoop的安装。

一、安装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

<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>master,slave1</value>
</property>
<property>
<name>hbase.master</name>
<value>hdfs://master:60000</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/zookeeper-3.3.6/data</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
</configuration>

5、 scp /usr/hbase slave1:/usr

6、启动<configuration>

<property>
<name>hbase.rootdir</name>
<value>hdfs://master:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>master,slave1</value>
</property>
<property>
<name>hbase.master</name>
<value>hdfs://master:60000</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/zookeeper-3.3.6/data</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
</configuration>

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI