李林超博客
首页
归档
留言
友链
动态
关于
归档
留言
友链
动态
关于
首页
大数据
正文
CentOS7 Zookeeper安装教程
Leefs
2021-02-12 PM
787℃
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 ``` 
标签:
Zookeeper
,
Hbase
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:
https://lilinchao.com/archives/1124.html
上一篇
CentOS7 Hadoop安装教程
下一篇
CentOS7 Hbase安装
取消回复
评论啦~
提交评论
栏目分类
随笔
2
Java
326
大数据
226
工具
31
其它
25
GO
40
标签云
Python
Beego
国产数据库改造
SpringBoot
Elastisearch
Linux
JavaWeb
机器学习
MyBatisX
ajax
SpringCloud
MySQL
Git
散列
Thymeleaf
NIO
数学
Tomcat
Hive
栈
DataX
BurpSuite
Stream流
Netty
RSA加解密
容器深入研究
线程池
字符串
设计模式
VUE
友情链接
申请
范明明
庄严博客
Mx
阿阳热爱前端
陶小桃Blog