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

20 lines
1.6 KiB
HTML

<a name="mrs_01_2343"></a><a name="mrs_01_2343"></a>
<h1 class="topictitle1">Why Does Metadata Still Exist When the HDFS Data Directory of the Hive Table Is Deleted by Mistake?</h1>
<div id="body1603976427287"><div class="section" id="mrs_01_2343__section12979818272"><h4 class="sectiontitle">Question</h4><p id="mrs_01_2343__p91971156125913">The HDFS data directory of the Hive table is deleted by mistake, but the metadata still exists. As a result, an error is reported during task execution.</p>
</div>
<div class="section" id="mrs_01_2343__section6343121132713"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_2343__p18907659217">This is a exception caused by misoperation. You need to manually delete the metadata of the corresponding table and try again.</p>
<p id="mrs_01_2343__p881712181710">Example:</p>
<p id="mrs_01_2343__p1981719163413">Run the following command to go to the console:</p>
<p id="mrs_01_2343__p1022710493158"><strong id="mrs_01_2343__b82703238346">source ${BIGDATA_HOME}/FusionInsight_BASE_<span id="mrs_01_2343__text649410401218">8.1.0.1</span>/install/FusionInsight-dbservice-2.7.0/.dbservice_profile</strong></p>
<p id="mrs_01_2343__p202271649141513"><strong id="mrs_01_2343__b627662310347">gsql -p 20051 -U hive -d hivemeta -W HiveUser@</strong></p>
<p id="mrs_01_2343__p943451817172">Run the <strong id="mrs_01_2343__b18335152614348">delete from tbls where tbl_id='xxx';</strong> command.</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>