Linroid的博客

Talk is cheap,show me the code.

Zookpeer 3.4.10 伪分布式 基于Ubuntu16.0.4 配置记录

此文详细记录了 Zookpeer 3.4.10 基于Ubuntu 16.0.4 安装的详细过程,以方便后续查阅.

下载Zookpeer

通过前面给出的下载地址,自行下载,然后解压到制定目录

hadoop@mutex-dl:/tmp$ sudo tar zxvf /home/mutex/Downloads/zookeeper-3.4.10.tar.gz -C /usr/local

新建如下目录结构

此处输入图片的描述

配置Zookpeer

复制 /usr/local/zookeeper-3.4.10/conf/zoo_sample.cfgzoo.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/server001/data
dataLogDir=/tmp/zookeeper/server001/logs
# the port at which the clients will connect
clientPort=2181
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
server.1=127.0.0.1:8881:7771
server.2=127.0.0.1:8882:7772
server.3=127.0.0.1:8883:7773
server.4=127.0.0.1:8884:7774
server.5=127.0.0.1:8885:7775

修改L12,13,15 已经新增L27-31,然后将该文件copy到/tmp/zookeeper/server001下,以此类推修改对应的server目录中的zoo.cfg即可,最后的目录结构如下:

此处输入图片的描述

随后在每个zookeeper-3.4.10目录下启动

此处输入图片的描述

接着启动连接

此处输入图片的描述

启动后的结果

此处输入图片的描述

附注

参考: Zookeeper 初体验之——伪分布式安装

阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Linux1s1s/article/details/79956870
文章标签: Zookpeer 
个人分类: Big-Data
上一篇搭建Hive 2.1.1 基于Hadoop 2.6.1 和 Ubuntu 16.0.4 记录
下一篇Kafka 2.11-0.11.0.2 伪分布式 基于Ubuntu16.0.4 配置记录
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭