李林超博客
首页
归档
留言
友链
动态
关于
归档
留言
友链
动态
关于
首页
大数据
正文
CentOS7 Zookeeper安装教程
Leefs
2021-02-12 PM
1895℃
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
NLP
4
标签云
Java工具类
JavaScript
Java编程思想
Git
随笔
SQL练习题
序列化和反序列化
JavaWeb
Sentinel
Spark Core
SpringBoot
Spark
Eclipse
Spark Streaming
线程池
容器深入研究
SpringCloudAlibaba
Redis
持有对象
Kafka
稀疏数组
Tomcat
CentOS
NIO
递归
gorm
Elastisearch
Beego
Http
MyBatis
友情链接
申请
范明明
庄严博客
Mx
陶小桃Blog
虫洞
评论已关闭