1. 解压
[hdp01@hdp01 apps]$ tar zxvf zookeeper-3.4.10.tar.gz
软链接 防止替换包,还得改配置
[hdp01@hdp01 apps]$ ln -s zookeeper-3.4.10 zookeeper
[hdp01@hdp01 apps]$ ls
apache-hive-2.3.6-bin hadoop-2.7.7 hive mysql-rpm zookeeper zookeeper-3.4.10
2. 配置环境变量
[hdp01@hdp01 zookeeper]$ vi ~/.bash_profile
export ZK_HOME=/home/hdp01/apps/zookeeper
export PATH=$PATH:$ZK_HOME/bin
[hdp01@hdp01 zookeeper]$ source ~/.bash_profile
3. 修改zookeeper配置文件
1. 先查看默认配置及说明
[hdp01@hdp01 conf]$ cp zoo_sample.cfg zoo.cfg
[hdp01@hdp01 conf]$ cat zoo.cfg
# The number of milliseconds of each tick
# 每一次心跳的时间间隔 2000ms
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