zookeeper集羣環境搭建

至少3臺zookeeper:

第一臺:con/zoo.cfg

tickTime=2000
initLimit=10
syncLimit=5
dataDir=C:\\Users\\Administrator\\Desktop\\Zookeepers\\zookeeper-3.4.6.1\\data
dataLogDir=C:\\Users\\Administrator\\Desktop\\Zookeepers\\zookeeper-3.4.6.1\\log
clientPort=2181
server.1=127.0.0.1:7777:8887
server.2=127.0.0.1:7778:8888
server.3=127.0.0.1:7779:8889

第一臺data/myid
1





第二臺:con/zoo.cfg

tickTime=2000
initLimit=10
syncLimit=5
dataDir=C:\\Users\\Administrator\\Desktop\\Zookeepers\\zookeeper-3.4.6.2\\data
dataLogDir=C:\\Users\\Administrator\\Desktop\\Zookeepers\\zookeeper-3.4.6.2\\log
clientPort=2182
server.1=127.0.0.1:7777:8887
server.2=127.0.0.1:7778:8888
server.3=127.0.0.1:7779:8889

第二臺:data/myid
2





第三臺:con/zoo.cfg

tickTime=2000
initLimit=10
syncLimit=5
dataDir=C:\\Users\\Administrator\\Desktop\\Zookeepers\\zookeeper-3.4.6.3\\data
dataLogDir=C:\\Users\\Administrator\\Desktop\\Zookeepers\\zookeeper-3.4.6.3\\log
clientPort=2183
server.1=127.0.0.1:7777:8887
server.2=127.0.0.1:7778:8888
server.3=127.0.0.1:7779:8889

第三臺:data/myid
3
相關文章
相關標籤/搜索