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>
17 lines
2.7 KiB
HTML
17 lines
2.7 KiB
HTML
<a name="mrs_01_1652"></a><a name="mrs_01_1652"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Delete Residual Table Names in the /hbase/table-lock Directory of ZooKeeper?</h1>
|
|
<div id="body1596003894861"><div class="section" id="mrs_01_1652__sd9b757209cbc4f0c83beb47bc8a25c7a"><h4 class="sectiontitle">Question</h4><p id="mrs_01_1652__ab4de6e864e9b4a9085284a08117f66a4">In security mode, names of tables that failed to be created are unnecessarily retained in the table-lock node (default directory is /hbase/table-lock) of ZooKeeper. How do I delete these residual table names?</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1652__s42476fcaff8440ceb84f02f5ebb278f0"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_1652__a1eb2c367397045b0af471fcc3540ec9c">Perform the following steps:</p>
|
|
<ol id="mrs_01_1652__ob0c962dad929496984e59e011a193267"><li id="mrs_01_1652__lb486eb62d2d749c6a7a78e6cca14ce9c">On the client, run the kinit command as the hbase user to obtain a security certificate.</li><li id="mrs_01_1652__lbcfa369999a84e9888a9b51ce2dc3c55">Run the <i><b><span class="cmdname" style="font-family:Arial" id="mrs_01_1652__c1ec1d4d6c18f462e84597d18a71266f3">hbase zkcli</span></b></i> command to launch the ZooKeeper Command Line Interface (zkCLI).</li><li id="mrs_01_1652__l1308136ae0a3437799d9d9afb749e2de">Run the <i><b><span class="cmdname" style="font-family:Arial" id="mrs_01_1652__c04a4b5c4b38f4950a1dfe66971a2e201">ls /hbase/table</span></b></i> command on the zkCLI to check whether the table name of the table that fails to be created exists.<ul id="mrs_01_1652__u992c57b2012b498bb5c8a8f6c0aeafe6"><li id="mrs_01_1652__lad479e00c3964d608702e826ef93159a">If the table name exists, no further operation is required.</li><li id="mrs_01_1652__la124abdbaf7048edb1b945b1e0156f6d">If the table name does not exist, run <i><b><span class="cmdname" style="font-family:Arial" id="mrs_01_1652__c961e7832611e47208e2e47b8d7f9545b">ls /hbase/table-lock</span></b></i> to check whether the table name of the table fail to be created exist. If the table name exists, run the <i><b><span class="cmdname" style="font-family:Arial" id="mrs_01_1652__c5eccebf06e9b4a2f88580b18c3f5b18f">delete /hbase/table-lock/<table></span></b></i> command to delete the table name. In the <i><b><span class="cmdname" style="font-family:Arial" id="mrs_01_1652__c9d751d59b67b497cb23e0ba46e05ebb9">delete /hbase/table-lock/<table></span></b></i> command, <i><b><span class="cmdname" style="font-family:Arial" id="mrs_01_1652__c441aa094b3ed443ab4c607141d232326"><table></span></b></i> indicates the residual table name.</li></ul>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1638.html">Common Issues About HBase</a></div>
|
|
</div>
|
|
</div>
|
|
|