1. hadoop cluster to ensure that there is no problem, I can look at another article
https://www.cnblogs.com/zhangjiahao/p/10992171.html
2. Download the installation package to upload zookeeper
Official website address: http: //mirror.bit.edu.cn/apache/zookeeper/
3. Extract tar -zxvf zookeeper-3.4.4.tar.gz
4. conf directory and copy into zoo_samle.cfg is zoo.cfg
cd zookeeper.2.4.5/conf
cp zoo_sample.cfg zoo.cfg
5. Edit zoo.cfg file (ip address and be in accordance with their own situation)
6. Create a file and write 1 myid
Create a file: touch myid
7. configured files to slave1 and slave2, modifying the numbers 2,3 myid
8. configure the environment variables distributed to the other two machines
9. Start to the bin directory
./zkServer.sh start
Check status ./zkServer.sh status