1. Download Zookeeper 3.4.5
2. Decompression
3, move to the right place
/home/hadoop/zookeeper
4. Set a location for zookeeper to place data
/home/hadoop/zk
5. Modify the Zookeeper configuration file
Vim/home/hadoop/zookeeper/conf/zoo.cfg
ticktime=2000
initlimit=10
Synclimit=5
Datadir=/home/hadoop/zk
clientport=2181
server.1=hd1:2888:3888
server.2=hd2:2888:3888
server.3=hd3:2888:3888
server.4=hd4:2888:3888
6. Distribute zookeeper to other nodes
Scp-r/home/hadoop/zookeeper Hd2:/home/hadoop
Scp-r/home/hadoop/zookeeper Hd3:/home/hadoop
Scp-r/home/hadoop/zookeeper Hd4:/home/hadoop
7. Establish myID file
Vim/home/hadoop/zk/myid
HD1 set to 1
HD2 set to 2
Analogy
7. Edit/etc/profile
#zookeeper
Export Zookeeper_home=/home/hadoop/zookeeper
Export path= $PATH: $ZOOKEEPER _home/bin
8. Start zookeeper independently on each node
/home/hadoop/zookeeper/bin/zkserver.sh
9. Use JPS to view status after startup
21408 Quorumpeermain
The appearance of Quorumpeermain is correct.
HBASE 0.98 version installation, three-step: Install Zookeeper 3.4.5