forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
15 lines
1.8 KiB
HTML
15 lines
1.8 KiB
HTML
<a name="mrs_01_2114"></a><a name="mrs_01_2114"></a>
|
|
|
|
<h1 class="topictitle1">Why Is Message "Node does not exist" Displayed when A Large Number of Znodes Are Deleted Using the <strong id="b12494122374118">deleteall </strong>Command</h1>
|
|
<div id="body1595905686496"><div class="section" id="mrs_01_2114__s947ee4767c614313835fffc42a707030"><h4 class="sectiontitle">Question</h4><p id="mrs_01_2114__p1211565290">When the client connects to a non-leader instance, run the <strong id="mrs_01_2114__b1046545145720">deleteall</strong> command to delete a large number of znodes, the error message "Node does not exist" is displayed, but run the <strong id="mrs_01_2114__b5176758155017">stat</strong> command, the node status can be obtained.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_2114__s059084dc67844dfa9d7e5432d5d2662f"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_2114__afd5bcbdd83df4cb8a3781c19c2f98b62">The leader and follower data is not synchronized due to network problems or large data volume. To solve this problem, connect the client to the leader instance and delete the instance. To delete the leader node, view the IP address of the node where the leader resides by referring to <a href="mrs_01_2111.html">How Do I Check Which ZooKeeper Instance Is a Leader?</a>, run the <strong id="mrs_01_2114__b1950513710285">zkCli.sh -server leader</strong> <em id="mrs_01_2114__i16505147132813">node IP address</em> <strong id="mrs_01_2114__b0850174792816">2181</strong> command to connect to the client, and then run the <strong id="mrs_01_2114__b58516532287">deleteall </strong>command to delete the leader node. For details, see <a href="mrs_01_2095.html">Using a ZooKeeper Client</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_2107.html">Common Issues About ZooKeeper</a></div>
|
|
</div>
|
|
</div>
|
|
|