On 7/20/2020 10:30 AM, yaswanth kumar wrote:
1# I did make sure that zoo.cfg got the proper data dir and its not pointing to temp folder; do I need to set the variables in ZK_ENV.sh. as well on top of the zoo.cfg ??
Those are questions about the ZK server, which we are not completely qualified to answer. ZK and Solr are separate Apache projects, with separate mailing lists. We have some familiarity with ZK because it is required to run Solr in cloud mode, but are not experts. We can only provide minimal help with standalone ZK servers ... you would need to talk to the ZK project for the best information.
Here are my confusions, as I said we are in two node architecture in DEV but maintaining only one instance of zookeeper, is that true that I need to maintain the same folder structure that we specify on the dataDir of zoo.cfg on both the nodes ??
Each ZK server is independent of the others and should have its own data directory. ZK will handle creating the contents of that directory, it is likely not something you would do. Each server could have a different setting for the data directory, or the same setting. Note that if the setting is the same on multiple servers, that each of those directories should point to separate storage. If you try to use a shared directory (perhaps with NFS) then I would imagine that ZK will not function correctly.
A fault tolerant install of ZK cannot be created with only two servers. It requires a minimum of three. For the Solr part, only two servers are required for minimal fault tolerance. Each Solr server must be configured with the addresses and ports of all 3 (or more) zookeeper servers.
See the Note in the following sections of the ZK documentation: https://zookeeper.apache.org/doc/r3.5.8/zookeeperAdmin.html#sc_zkMulitServerSetup https://zookeeper.apache.org/doc/r3.5.8/zookeeperStarted.html#sc_RunningReplicatedZooKeeper Thanks, Shawn