zookeeper的安裝教程
阿新 • • 發佈:2018-11-09
1.下載zookeeper wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.11/zookeeper-3.4.11.tar.gz 2.解壓到指定目錄 /usr/local/software tar -xvfz zookeeper-3.4.11.tar.gz -C /usr/local/software 3.配置zookeeper的環境變數 vim /etc/profile export ZOOKEEPER_HOME=/usr/local/zookeeper-3.4.11 export PATH=$PATH:$ZOOKEEPER_HOME/bin 4.是環境變數生效 source /etc/profile 5.在conf目錄下重新命名zoo_sample.cfg cd /usr/local/software/zookeeper-3.4.11/conf mv zoo_sample.cfg zoo.cfg 6.更改在conf目錄下資料的存放目錄 vim zoo.cfg #dataDir=/tmp/zookeeper dataDir=/usr/local/software/zookeeper/zookeeperData 最後新增 server.0=bhz:2888:3888 server.1=hadoop1:2888:3888 server.2=hadoop2:2888:3888 source /etc/profile