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>
20 lines
2.8 KiB
HTML
20 lines
2.8 KiB
HTML
<a name="mrs_01_1759"></a><a name="mrs_01_1759"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Prevent Key Directories from Data Loss Caused by Misoperations of the <strong id="b140031320152518">insert overwrite</strong> Statement?</h1>
|
|
<div id="body1595924881699"><div class="section" id="mrs_01_1759__section16837140195018"><h4 class="sectiontitle">Question</h4><p id="mrs_01_1759__p51061911654">How do I prevent key directories from data loss caused by misoperations of the <strong id="mrs_01_1759__b1182019165443">insert overwrite</strong> statement?</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1759__section8731844508"><h4 class="sectiontitle">Answer</h4><p id="mrs_01_1759__p15011313133219">During monitoring of key Hive databases, tables, or directories, to prevent data loss caused by misoperations of the <strong id="mrs_01_1759__b120370091252518">insert overwrite</strong> statement, configure <span class="parmname" id="mrs_01_1759__parmname18221637114018"><b>hive.local.dir.confblacklist</b></span> in Hive to protect directories.</p>
|
|
<p id="mrs_01_1759__p1847514813194">This configuration item has been configured for directories such as <span class="filepath" id="mrs_01_1759__filepath076947194012"><b>/opt/</b></span> and <span class="filepath" id="mrs_01_1759__filepath324685194016"><b>/user/hive/warehouse</b></span> by default.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1759__section233919136507"><h4 class="sectiontitle">Prerequisites</h4><p id="mrs_01_1759__p16835135824017">The Hive and HDFS components are running properly.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1759__section36126991115"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_1759__ol152059517520"><li id="mrs_01_1759__li894044771915"><span>Log in to FusionInsight Manager.</span></li><li id="mrs_01_1759__li12053511521"><span>Choose <strong id="mrs_01_1759__b39509408252518">Cluster </strong>> <em id="mrs_01_1759__i199257593252518">Name of the desired cluster</em> > <strong id="mrs_01_1759__b36523537252518">Services</strong> > <strong id="mrs_01_1759__b827541852518">Hive </strong>> <strong id="mrs_01_1759__b191693700752518">Configurations</strong> > <strong id="mrs_01_1759__b64691390452518">All Configurations</strong>, and search for the <span class="parmname" id="mrs_01_1759__parmname173841186413"><b>hive.local.dir.confblacklist</b></span> configuration item.</span></li></ol><ol start="3" id="mrs_01_1759__ol620410565217"><li id="mrs_01_1759__li1120418555215"><span>Add paths of databases, tables, or directories to be protected in the parameter value.</span></li><li id="mrs_01_1759__li1920413510529"><span>Click <strong id="mrs_01_1759__b36451286452518">Save</strong> to save the settings.</span></li></ol>
|
|
</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>
|
|
|