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>
22 lines
4.8 KiB
HTML
22 lines
4.8 KiB
HTML
<a name="mrs_01_0968"></a><a name="mrs_01_0968"></a>
|
|
|
|
<h1 class="topictitle1">Inserting Data to a Directory That Does Not Exist</h1>
|
|
<div id="body1590395285089"><div class="section" id="mrs_01_0968__section883415117430"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0968__p786961194311">This function applies to Hive.</p>
|
|
<p id="mrs_01_0968__p1786981124314">With this function enabled, run the <strong id="mrs_01_0968__b786991113437">insert overwrite directory </strong><em id="mrs_01_0968__i15830528195016">/path1/path2/path3</em>... command to write a subdirectory. The permission of the <em id="mrs_01_0968__i157819601717">/path1/path2</em> directory is 700, and the owner is the current user. If the <em id="mrs_01_0968__i18536241178">/path3</em> directory does not exist, it is automatically created and data is written successfully.</p>
|
|
<p id="mrs_01_0968__p8869511174313">This function is supported when <strong id="mrs_01_0968__b19565740161716">hive.server2.enable.doAs</strong> is set to <strong id="mrs_01_0968__b195661340151711">true</strong> in earlier versions. This version supports the function when <strong id="mrs_01_0968__b1856624091719">hive.server2.enable.doAs</strong> is set to <strong id="mrs_01_0968__b4566340111718">false</strong>.</p>
|
|
<div class="note" id="mrs_01_0968__note1183517111434"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0968__p168697110432">The parameter adjustment of this function is the same as that of the custom parameters added in <a href="mrs_01_0967.html">Writing a Directory into Hive with the Old Data Removed to the Recycle Bin</a>.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="mrs_01_0968__section283671184312"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0968__ol181811550174911"><li id="mrs_01_0968__li1558615392582"><span>The Hive service configuration page is displayed.</span><p><ul id="mrs_01_0968__ul758611394580"><li id="mrs_01_0968__li195860395583">For versions earlier than MRS 1.9.2, log in to MRS Manager, choose <strong id="mrs_01_0968__b3318198854">Services</strong> > <strong id="mrs_01_0968__b113181781510">Hive</strong> > <strong id="mrs_01_0968__b11319980517">Service Configuration</strong>, and select <strong id="mrs_01_0968__b1632014818514">All</strong> from the <strong id="mrs_01_0968__b3320381959">Basic</strong> drop-down list.</li><li id="mrs_01_0968__li1358653915581">For MRS 1.9.2 or later, click the cluster name on the MRS console, choose <strong id="mrs_01_0968__b642909656">Components</strong> > <strong id="mrs_01_0968__b1843009558">Hive</strong> > <strong id="mrs_01_0968__b54301591358">Service Configuration</strong>, and select <strong id="mrs_01_0968__b154316919519">All</strong> from the <strong id="mrs_01_0968__b943118910512">Basic</strong> drop-down list.<div class="note" id="mrs_01_0968__note73070488542"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0968__p8410155813404">If the <strong id="mrs_01_0968__b12855131705917">Components</strong> tab is unavailable, complete IAM user synchronization first. (On the <strong id="mrs_01_0968__b385651713593">Dashboard</strong> page, click <strong id="mrs_01_0968__b985651795912">Synchronize</strong> on the right side of <span class="parmname" id="mrs_01_0968__parmname1685631711594"><b>IAM User Sync</b></span> to synchronize IAM users.)</p>
|
|
</div></div>
|
|
</li><li id="mrs_01_0968__li1675864017574">For MRS 3.<em id="mrs_01_0968__i04915101055">x</em> or later, log in to FusionInsight Manager. For details, see <a href="mrs_01_2124.html">Accessing FusionInsight Manager (MRS 3.x or Later)</a>. And choose <strong id="mrs_01_0968__b125345117517">Cluster</strong> > <em id="mrs_01_0968__i253412116512">Name of the desired cluster</em> > <strong id="mrs_01_0968__b1653471115517">Services</strong> > <strong id="mrs_01_0968__b10534131117511">Hive</strong> > <strong id="mrs_01_0968__b1953421110513">Configurations</strong> > <strong id="mrs_01_0968__b165346112059">All Configurations</strong>.</li></ul>
|
|
</p></li><li id="mrs_01_0968__li051003218413"><span>Choose <strong id="mrs_01_0968__b1737983404210">HiveServer(Role)</strong> > <strong id="mrs_01_0968__b837943464212">Customization</strong>, add a customized parameter to the <strong id="mrs_01_0968__b173791134184213">hive-site.xml</strong> parameter file, set <strong id="mrs_01_0968__b3380103416420">Name</strong> to <strong id="mrs_01_0968__b1338033411428">hive.overwrite.directory.move.trash</strong>, and set <strong id="mrs_01_0968__b1738014349428">Value</strong> to <strong id="mrs_01_0968__b23801334124217">true</strong>. Restart all Hive instances after the modification.</span></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>
|
|
|