Hi Robin,

The config files need to be the same on all servers.

Wherever the zookeeper data directory is, on each server there must be a myid 
file that contains the id of the zookeeper server; this will be 1, 2, and 3, on 
servers 1, 2, and 3, etc. This assumes a 3 server quorum; you may have more.

You will need to have retained the data directory if reusing the same servers, 
or copied the data directory from old servers to new ones.

It's better to use the term leader rather than active. Any zookeeper that is 
not a leader is a follower.

To make sure the config is the same, you can sha1sum the zookeeper.cfg file on 
each server and ensure the checksum is the same on each server.

A stat command with zkCli.sh on each server is also good.

Let us know if that helps.

Josef Roehrl​
FuseForward | Senior Architect - Professional Services
[https://fuseforward.atlassian.net/wiki/download/attachments/512327681/image001.png?version=1&modificationDate=1537397840684&cacheVersion=1&api=v2]

Website<https://fuseforward.com/?utm_source=Email%20Signature&utm_medium=email%20signature&utm_campaign=email%20signature>
 | 
Newsletter<https://fuseforward.com/subscribe-to-our-newsletter/?utm_source=Email%20Signature&utm_medium=Email%20Signature&utm_campaign=Email%20Signature>
 | Twitter<https://twitter.com/fuseforward> | 
LinkedIn<https://www.linkedin.com/company/fuseforward/?originalSubdomain=ca>

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. If a 
transmission was received in error, you are to immediately delete this e-mail 
and any attachments from your system and are hereby notified that any 
unauthorized reproduction or distribution is prohibited and are requested to 
notify the sender immediately. Any views expressed in these messages are those 
of the individual sender and may not necessarily reflect the views of the 
company.
________________________________
From: Enrico Olivelli <eolive...@gmail.com>
Sent: Monday, July 22, 2024 12:09 AM
To: robin.sto...@cchmc.org.invalid <robin.sto...@cchmc.org.invalid>
Cc: DevZooKeeper <dev@zookeeper.apache.org>
Subject: Re: Your ZK connection string (3 hosts) is different from the dynamic 
ensemble config (3 hosts)

Robin,

Il Mer 10 Lug 2024, 14:41 Storch, Robin <robin.sto...@cchmc.org.invalid> ha
scritto:

> I apologize in advance - I am not familiar with zookeeper, I'm trying to
> migrate from centos7 to rhel9 on a server that is running solr/zookeeper.
>
> I copied over the configuration and made changes to the config files that
> listed the server names.  I also copied over the contents of
> /opt/solr/aerscloud/solr/configsets which apparently contained information
> about the previous server names.  I have three nodes and solr and zookeeper
> and starting up and running on all three.
>
> The problem is that on the active node, it is showing the old server names
> when I run this command:
>


Usually when you upgrade ZooKeeper you only upgrade the code and keep the
data and config files in place.

You are saying that you 'copied'...so you have new machines?

Usually with ZooKeeper you add the new nodes, one at a time and then remove
the older nodes.

How did you do the upgrade?


Enrico


> /usr/lib/zookeeper/bin/zkCli.sh
> config
>
> The other two nodes show the correct new server names.
>
> There are currently two configsets under
> /opt/solr/aerscloud/solr/configsets/, the old one and a new one that was
> created by the solr admin.  Is there a way to correct this so that the
> zookeeper config points to the new server names?
>
> Thank you,
> Robin
>
> *Robin Storch, M.Ed.*
>
> *Systems Engineer*
>
> *IS Research IT*
>
> *Information Services*
>
> *Cincinnati Children's*
> 3333 Burnet Avenue, Cincinnati, OH 45229
>
>
>
>
>

Reply via email to