Yang, Tong 6182f91ba8 MRS component operation guide_normal 2.0.38.SP20 version
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>
2022-12-09 14:55:21 +00:00

37 lines
3.2 KiB
HTML

<a name="mrs_01_0956"></a><a name="mrs_01_0956"></a>
<h1 class="topictitle1">Deleting Single-Row Records from Hive on HBase</h1>
<div id="body1590395281779"><div class="section" id="mrs_01_0956__sb659260446c84d109098bc66541723b2"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0956__a6cc8c03a8b06454db91b4b9c967698c5">Due to the limitations of underlying storage systems, Hive does not support the ability to delete a single piece of table data. In Hive on HBase, MRS Hive supports the ability to delete a single piece of HBase table data. Using a specific syntax, Hive can delete one or more pieces of data from an HBase table.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0956__t443292c058664981980b4b040e9cd9ae" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Permissions required for deleting single-row records from the Hive on HBase table</caption><thead align="left"><tr id="mrs_01_0956__r9ecdd3f2387c43fca9ae7d6c3dc9660d"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.2.3.1.1"><p id="mrs_01_0956__ae559c5640ef744bbbac8f637d3ec359c">Cluster Authentication Mode</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.2.3.1.2"><p id="mrs_01_0956__a3e3e36eda6f242489163d0423ac72c10">Required Permission</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_0956__r9e42df5ccd2c49a38876e1d8b293bb90"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.2.3.1.1 "><p id="mrs_01_0956__aafecc7aec34d4cf78a69ad8fefed29b5">Security mode</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.2.3.1.2 "><p id="mrs_01_0956__ad6b36bfa03c2441c96455f7e6771bb21">SELECT, INSERT, and DELETE</p>
</td>
</tr>
<tr id="mrs_01_0956__r6facd75e62fd45ceb4836d6f9d8f0fb8"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.2.3.1.1 "><p id="mrs_01_0956__a3219f29811364d1fb908348e642fae44">Common mode</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.2.3.1.2 "><p id="mrs_01_0956__a13046dab91904f2184e1b3955abd2630">None</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_01_0956__s3f8ac7acf87d463489a8689aa182bbb1"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0956__o9dfbb59117c14b11ab9985287956dedb"><li id="mrs_01_0956__l5961e2b24131425b996861adb61a1f8e"><span>To delete some data from an HBase table, run the following HQL statement:</span><p><p id="mrs_01_0956__a93a7b0be9e8a41d788a2e9384a263b33"><strong id="mrs_01_0956__a145e68906a354beeaea05c759d1a1b2a">remove table <em id="mrs_01_0956__acd0b294f875e40a192a03bba9a848b37">&lt;table_name&gt;</em> where <em id="mrs_01_0956__a67cd1ffd6767415fb756e8ddf2c229ef">&lt;expression&gt;</em>;</strong></p>
<p id="mrs_01_0956__a84bcb997f6e0460bbe5900d619260de9">In the preceding information, <em id="mrs_01_0956__i985916381495">&lt;expression&gt;</em> specifies the filter condition of the data to be deleted. <em id="mrs_01_0956__i129231949154913">&lt;table_name&gt;</em> indicates the Hive on HBase table from which data is to be deleted.</p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0581.html">Using Hive</a></div>
</div>
</div>