Skip to content

Commit 2caf1f2

Browse files
(AzureCXP) MicrosoftDocs/azure-docs#53209
Added clear steps to backup and clean up ZooKeeper data directory. Based on : https://hdinsight.github.io/zookeeper/manage-zookeeper-snapshot.html
1 parent 3af7bf8 commit 2caf1f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/hdinsight/spark/zookeeper-troubleshoot-quorum-fails.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ When the volume of snapshot files is large or snapshot files are corrupted, ZooK
3737

3838
Check ZooKeeper data directory `/hadoop/zookeeper/version-2` and `/hadoop/hdinsight-zookeeper/version-2` to find out if the snapshots file size is large. Take the following steps if large snapshots exist:
3939

40-
1. Back up snapshots in `/hadoop/zookeeper/version-2` and `/hadoop/hdinsight-zookeeper/version-2`.
40+
1. Check the status of other ZooKeeper servers in the same quorum to make sure they are working fine with the command “`echo stat | nc {zk_host_ip} 2181 (or 2182)`”.
4141

42-
1. Clean up snapshots in `/hadoop/zookeeper/version-2` and `/hadoop/hdinsight-zookeeper/version-2`.
42+
1. Login the problematic ZooKeeper host, backup snapshots and transaction logs in `/hadoop/zookeeper/version-2` and `/hadoop/hdinsight-zookeeper/version-2`, then cleanup these files in the two directories.
4343

44-
1. Restart all ZooKeeper servers from Apache Ambari UI.
44+
1. Restart the problematic ZooKeeper server in Ambari or the ZooKeeper host. Then restart the service which has problems.
4545

4646
## Next steps
4747

0 commit comments

Comments
 (0)