Thank Alexander,
I'm giving a shot to 3.5.3.
I have 2 servers, the first one has:

-zoo.cfg :
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/var/lib/zookeeper/data
reconfigEnabled=true
standaloneEnabled=false
dynamicConfigFile=/etc/zookeeper/bin/conf/zoo_replicated1.cfg.dynamic

-zoo_replicated1.cfg.dynamic:
server.1=zook.mydomain.com:2888:3888

- myid: 1

On the second server I'm using the same zoo.cfg and zoo_replicated1.cfg.dynamic
and I only changed the id to 2.
I'm getting the following in the logs:

2017-07-14 19:43:25,515 - INFO  [main:QuorumPeerConfig@117] - Reading
configuration from: /etc/zookeeper/zoo.cfg
2017-07-14 19:43:25,518 - INFO  [main:QuorumPeerConfig@317] - clientPort is
not set
2017-07-14 19:43:25,519 - INFO  [main:QuorumPeerConfig@331] -
secureClientPort is not set
2017-07-14 19:43:25,579 - WARN  [main:QuorumPeerConfig@590] - No server
failure will be tolerated. You need at least 3 servers.
2017-07-14 19:43:25,583 - INFO  [main:DatadirCleanupManager@78] -
autopurge.snapRetainCount set to 3
2017-07-14 19:43:25,583 - INFO  [main:DatadirCleanupManager@79] -
autopurge.purgeInterval set to 0
2017-07-14 19:43:25,583 - INFO  [main:DatadirCleanupManager@101] - Purge
task is not scheduled.
2017-07-14 19:43:25,584 - INFO  [main:ManagedUtil@46] - Log4j found with
jmx enabled.
2017-07-14 19:43:25,594 - INFO  [main:QuorumPeerMain@138] - Starting quorum
peer
2017-07-14 19:43:25,617 - INFO  [main:Log@186] - Logging initialized @388ms
2017-07-14 19:43:25,661 - WARN  [main:ContextHandler@1339] -
o.e.j.s.ServletContextHandler@6d78f375{/,null,null} contextPath ends with /*
2017-07-14 19:43:25,661 - WARN  [main:ContextHandler@1350] - Empty
contextPath
2017-07-14 19:43:25,673 - INFO  [main:QuorumPeer@1349] - Local sessions
disabled
2017-07-14 19:43:25,673 - INFO  [main:QuorumPeer@1360] - Local session
upgrading disabled
2017-07-14 19:43:25,673 - INFO  [main:QuorumPeer@1327] - tickTime set to
2000
2017-07-14 19:43:25,673 - INFO  [main:QuorumPeer@1371] - minSessionTimeout
set to 4000
2017-07-14 19:43:25,674 - INFO  [main:QuorumPeer@1382] - maxSessionTimeout
set to 40000
2017-07-14 19:43:25,674 - INFO  [main:QuorumPeer@1397] - initLimit set to 10
2017-07-14 19:43:25,685 - ERROR [main:QuorumPeerMain@98] - Unexpected
exception, exiting abnormally
java.lang.RuntimeException: My id 2 not in the peer list
at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:770)
at
org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:185)
at
org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:120)
at
org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:79)

What am I doing wrong? should the second server reach the first one, get
the list of the other server in the ensemble and join it?
Or I have to implement an automation on top of this?
Regards
L.
On Fri, Jul 14, 2017 at 11:07 AM, Alexander Shraer <[EMAIL PROTECTED]>
wrote:
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB