Zookeeper error: Error: myid file is missing

Points to check:

  1. Myid file is located in the home/apps/zookeeper/data folder and should contain the zk file id for each node: 1 for node 1 (2 for 2 or 3 for 3 nodes)
  2. In the control panel Zookeeper tab > zookeeper/config file

It should contain all three nodes

server.1=...........................2181

server.2=

server.3=

Version

 

(In the situations where the control panel is not starting up, we can check this from the zooinspector app

Go to RLI_HOME/apps/zookeeper/contrib/zooinspector/ -> run

And enter the ZK password after : symbol

 

  1. Cloud.properties file in ALL NODES

C:\radiantone\vds\vds_server\conf should contain all three nodes mentioned in the field name zk.servers: comma-separated

IT SHOULD HAVE THE CURRENT SERVER NAME FIRST AND THEN ITS PEER NODES IN THAT ORDER

zk.servers=W-RLI19-SJamadade\:2181

 

  1. Check ZK status 

RLI_HOME\bin\advanced\cluster.sh check

 

  1. Zoo.cfg.dynamic.xxx file 

This is the file that the zoo.cfg file points to and it should contain all 3 nodes

For example: dynamicConfigFile=C:/radiantone/vds/apps/zookeeper/conf/zoo.cfg.dynamic.100000000

It is usually not recommended to edit the dynamic file but can do it if absolutely necessary

Location: home/apps/zookeeper/conf/

 

  1. Try removing the below files from the location: home/apps/zookeeper/data/version-2
  • acceptedEpoch
  • currentEpoch

      From all 3 nodes and restarting all nodes

      Restarting the zk 

 

  1. Check if the Firewall status is OFF for all nodes.
  • Try pinging all nodes- nodes should be able to communicate with each other
  • Check that the ZK port 2181 is open and listening

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Articles in this section