Restoring a corrupted ZooKeeper node

Data is retained in the ZooKeeper nodes for a short time. Data is also replicated to all other servers in the setup. Therefore, a backup of the ZooKeeper node is not necessary. If a ZooKeeper node is corrupted, the node can be restored by reinstalling the ZooKeeper node with the same configuration.

Procedure

To restore a corrupted ZooKeeper node, complete the following steps:

  1. Uninstall the ZooKeeper node.
  2. Clear the ZooKeeper directory.
  3. Reinstall the ZooKeeper node with the same configuration.
    Important: Ensure that you use the same IP address of the earlier uninstalled node.
  4. Restart the server.