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
1.8 KiB
HTML
17 lines
1.8 KiB
HTML
<a name="mrs_01_1754"></a><a name="mrs_01_1754"></a>
|
|
|
|
<h1 class="topictitle1">Why Cannot the DROP operation Be Performed on a Backed-up Hive Table?</h1>
|
|
<div id="body1595924880900"><div class="section" id="mrs_01_1754__s00057ad6e9d340e7ac85cc8cab57b5b8"><h4 class="sectiontitle">Question</h4><p id="mrs_01_1754__ab205ccde787940e3a698bda21dcfb0b1">Why cannot the <strong id="mrs_01_1754__b121111311417">DROP</strong> operation be performed for a backed up Hive table?</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1754__s09d91bfe41564a339cdf23a7fdda4275"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_1754__a4b762bfc15934cfb99747c295dc76fe1">Snapshots have been created for an HDFS directory mapping to the backed up Hive table, so the HDFS directory cannot be deleted. As a result, the Hive table cannot be deleted. </p>
|
|
<p id="mrs_01_1754__en-us_topic_0116216667_p27985815179">When a Hive table is being backed up, snapshots are created for the HDFS directory mapping to the table. The snapshot mechanism of HDFS has the following limitation: If snapshots have been created for an HDFS directory, the directory cannot be deleted or renamed unless the snapshots are deleted. When the <strong id="mrs_01_1754__b168793516159">DROP</strong> operation is performed for a Hive table (except the EXTERNAL table), the system attempts to delete the HDFS directory mapping to the table. If the directory fails to be deleted, the system displays a message indicating that the table fails to be deleted. </p>
|
|
<p id="mrs_01_1754__a10b57e19335249c586b6f0b2eeb69492">If you need to delete this table, manually delete all backup tasks related to this table.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1752.html">Common Issues About Hive</a></div>
|
|
</div>
|
|
</div>
|
|
|