Zookeeper部署
程序员文章站
2022-06-19 08:53:38
...
1、下载安装包到software
curl -O http://archive.cloudera.com/cdh5/cdh/5/zookeeper-3.4.5-cdh5.15.1.tar.gz
2、解压到~/application
tar -zxvf zookeeper-3.4.5-cdh5.15.1.tar.gz -C ~/application
3、添加系统环境变量
sudo vim ~/.bash_profile
# Setting Path for ZooKeeper
export ZOOKEEPER_HOME=~/application/zookeeper-3.4.5-cdh5.15.1
export PATH=$PATH:$ZOOKEEPER_HOME/bin
source ~/.bash_profile
4、配置ZooKeeper
cd ~/application/zookeeper-3.4.5-cdh5.15.1/conf
cp zoo_sample.fg zoo.cfg
#修改zoo.cfg
vim zoo.cfg
dataDir=~/application/tmp/zookeeper
5、启动ZooKeeper
cd ~/application/zookeeper-3.4.5-cdh5.15.1/bin
#启动服务
./zkServer.sh start
#启动客户端
./zkCli.sh
上一篇: 越来越多用户吐槽苹果:iPhone等设备系统中出现太多广告
下一篇: 爱普生打印机怎么校准打印头?