Usually the list of servers must be the same across all the ZK nodes, so you have to set the dns name correctly. The only change between the ZK servers is usually the contents of the myid file.
If your machine needs the ZK server to bind on 0.0.0.0 there is a specific option quorumListenOnAllIPs. See this page for reference https://zookeeper.apache.org/doc/r3.4.13/zookeeperAdmin.html#sc_clusterOptions I hope that helps Enrico Il Ven 1 Lug 2022, 21:46 Heller, George A III CTR (USA) <[email protected]> ha scritto: > *-- Node1 zoo.cfg --* > > *tickTime=2000* > > *dataDir=I:/zookeeper/data* > > *clientPort=2181* > > *4lw.commands.whitelist=mntr,conf,ruok* > > *initLimit=5* > > *syncLimit=2* > > *server.1=0.0.0.0:2888:3888* > > *server.2=NODE2DNSNAME.local:2888:3888* > > *server.3=NODE3DNSNAME.local:2888:3888* > > > > *One question I had was why are you defining the server configuration in > the zoo.cfg instead of zoo.cfg.dynamic file* > > * if you are using dynamic configuration introduced in the zookeeper 3.5+ > version? * > > > > *Regards, Aishwarya Soni* > > > > I am a newbie to Zookeeper(about 2 months) and I am not using dynamic > configuration, the server names will never change. > > The only reason I am guessing is because I also supply the server names in > the Solr start command(solr is the client for zookeeper). > > > > Command is: [solr start -cloud -f -p 8983 -z ” NODE1DNSNAME.local:2182, > NODE2DNSNAME.local:2181, NODE3DNSNAME.local:2181”] I think zookeeper > compares the solr start command to the zoo.cfg files and sees differences. > > > > BTW, I reply like this because I have subscribed to both zookeeper forums, > but it does not send email to me. The solr forum sends email just fine. > > > > Thanks, > > George >
