Hbase记录-zookeeper部署

时间:2020-12-23 16:45:40

#官网下载二进制包解压到/usr/app下,配置/etc/profile:

export ZOOKEEPER_HOME=/usr/app/zookeeper

export PATH=$PATH:$ZOOKEEPER/bin

#mkdir  /usr/app/zookeeper/data -p  新建目录

#配置zookeeper/conf

zoo.cfg

tickTime=2000

initLimit=10

syncLimit=5

dataDir=/usr/app/zookeeper/data

clientPort=2181

server.1= xinfang:2888:3888

在/usr/app/zookeeper/data 目录下建立 myid 文件,并在server.1 节点中的 myid 中输入1.

#启动zookeeper

sh /usr/app/zookeeper/bin/ zkServer.sh