李林超博客
首页
归档
留言
友链
动态
关于
归档
留言
友链
动态
关于
首页
大数据
正文
CentOS7 Zookeeper安装教程
Leefs
2021-02-12 PM
1282℃
0条
# 05.CentOS7 Zookeeper安装教程 ### 一、下载地址 http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.5.8/apache-zookeeper-3.5.8-bin.tar.gz ### 二、安装 **1. 解压** ``` [hadoop@localhost sources]$ sudo tar -zxf apache-zookeeper-3.5.8-bin.tar.gz -C /usr/local/ ``` **2. 修改权限** ``` [hadoop@localhost local]$ sudo chown -R hadoop:hadoop /usr/local/apache-zookeeper-3.5.8-bin/ ``` **3.修改配置文件** + zoo.cfg ``` [hadoop@localhost apache-zookeeper-3.5.8-bin]$ cd /usr/local/apache-zookeeper-3.5.8-bin/conf/ [hadoop@localhost conf]$ cp zoo_sample.cfg zoo.cfg [hadoop@localhost conf]$ vim zoo.cfg [hadoop@localhost apache-zookeeper-3.5.8-bin]$ mkdir -p tmp/zookeeper ``` 修改文件 ```xml # 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=/usr/local/apache-zookeeper-3.5.8-bin/tmp/zookeeper # the port at which the clients will connect clientPort=2181 # the maximum number of client connections. # increase this if you need to handle more clients #maxClientCnxns=60 # # 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 ``` **4. 添加环境变量** ``` [hadoop@localhost zookeeper]$ vim ~/.bashrc ``` 添加如下内容 ``` export ZOOKEEPER_HOME=/usr/local/apache-zookeeper-3.5.8-bin export PATH=$ZOOKEEPER_HOME/bin:$PATH ``` 使配置生效 ``` [hadoop@localhost zookeeper]$ source ~/.bashrc ``` **5. 启动** ``` [hadoop@localhost zookeeper]$ zkServer.sh start ``` **6. 验证** ``` [hadoop@localhost zookeeper]$ zkServer.sh status ``` ![05.CentOS7 Zookeeper安装教程01.jpg](https://lilinchao.com/usr/uploads/2021/02/3497126553.jpg)
标签:
Zookeeper
,
Hbase
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:
https://lilinchao.com/archives/1124.html
上一篇
CentOS7 Hadoop安装教程
下一篇
CentOS7 Hbase安装
取消回复
评论啦~
提交评论
栏目分类
随笔
2
Java
326
大数据
229
工具
31
其它
25
GO
47
标签云
Spark RDD
MyBatis
Azkaban
字符串
MyBatisX
Hive
Ubuntu
机器学习
Spring
Thymeleaf
JavaSE
Http
Elastisearch
前端
SQL练习题
Golang
工具
链表
数学
gorm
持有对象
LeetCode刷题
查找
Livy
FastDFS
SpringCloudAlibaba
高并发
HDFS
SpringBoot
人工智能
友情链接
申请
范明明
庄严博客
Mx
陶小桃Blog
虫洞