1. 环境准备:
Linux 服务器 3个节点
2. 需要提前安装的软件
Zookeeper 3.4.6
JDK 1.7 +
Scala 2.11+
# 1. zookeeper 3.4.6
[hadoop@hdp001 zookeeper-3.4.6]$ bin/zkServer.sh status
Using config: /home/hadoop/app/zookeeper/bin/../conf/zoo.cfg
hdp001: Mode: follower
[hadoop@hdp002 zookeeper-3.4.6]$ bin/zkServer.sh status
Using config: /home/hadoop/app/zookeeper/bin/../conf/zoo.cfg
hdp002: Mode: leader
[hadoop@hdp003 zookeeper-3.4.6]$ bin/zkServer.sh status
Using config: /home/hadoop/app/zookeeper/bin/../conf/zoo.cfg
hdp003: Mode: follower
# 2.jdk1.8
[hadoop@hdp001 ~]$ java -version
java version "1.8.0_45"