You might also try this utility for generating the configs: https://github.com/phunt/zkconf
see the example $ zkconf.py —servers “host1.com,host2.com,168.1.1.1” ~/zookeeper_trunk test3servers you'd probably want similar Patrick On Mon, Nov 11, 2013 at 8:45 PM, Patrick Hunt <[email protected]> wrote: > You might also ensure that the vms can communicate over the ports > you're using. No firewall say. Have you looked at the logs at all? > They might shed more light as well. > > Patrick > > On Mon, Nov 11, 2013 at 7:13 PM, kishore g <[email protected]> wrote: >> can you provide the configurations (zoo.cfg) on each server. From the >> description, your server 1 seems to be incorrectly configured. >> >> thanks, >> Kishore G >> >> >> On Mon, Nov 11, 2013 at 8:19 AM, Arindam Mukherjee < >> [email protected]> wrote: >> >>> Of late I have been bombarding this list with questions and am getting >>> a little frustrated at my lack of understanding of ZooKeeper. I am up >>> against deadlines that look infeasible now. :( >>> >>> Anyway, having majorly failed to get going with 3.5.0 (you might see a >>> question earlier today), I decided, for the purposes of a PoC to >>> create a static 3.4.6 configuration. Say, create max 3 VMs, of which 2 >>> are always up. Initially 1 and 2 would be up. I would be listing 3 >>> servers in the config - server.1 through server.3. >>> >>> I brought up the servers on 1 and 2 in that order using "zkServer.sh >>> start-foreground". However they failed to connect and form a quorum >>> and the foreground server process showed an increasing timeout. Then I >>> brought up 3 at which point 2 and 3 were able to connect. >>> >>> Next I started zkCli.sh from 1 - it failed to connect to any box. >>> However the ones on 2 and 3 connected neatly. I am at a little loss to >>> explain this. Need help. >>> >>> Thanks. >>> Arindam >>>
