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>
19 lines
4.2 KiB
HTML
19 lines
4.2 KiB
HTML
<a name="mrs_01_0970"></a><a name="mrs_01_0970"></a>
|
|
|
|
<h1 class="topictitle1">Disabling of Specifying the location Keyword When Creating an Internal Hive Table</h1>
|
|
<div id="body8662426"><div class="section" id="mrs_01_0970__en-us_topic_0000001219149393_section18818847144313"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0970__en-us_topic_0000001219149393_p1960173420419">This function is applicable to Hive and Spark2x.</p>
|
|
<p id="mrs_01_0970__en-us_topic_0000001219149393_p8893047104317">After this function is enabled, the <strong id="mrs_01_0970__en-us_topic_0000001219149393_b279444917108">location</strong> keyword cannot be specified when a Hive internal table is created. Specifically, after a table is created, the table path following the location keyword is created in the default <strong id="mrs_01_0970__en-us_topic_0000001219149393_b1665045110106">\warehouse</strong> directory and cannot be specified to another directory. If the location is specified when the internal table is created, the creation fails.</p>
|
|
<div class="note" id="mrs_01_0970__en-us_topic_0000001219149393_note3429145621213"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0970__en-us_topic_0000001219149393_p12430115691219">After this function is enabled, the location keyword cannot be specified during the creation of a Hive internal table. The table creation statement is restricted. If a table that has been created in the database is not stored in the default directory <strong id="mrs_01_0970__en-us_topic_0000001219149393_b572565881019">/warehouse</strong>, the <strong id="mrs_01_0970__en-us_topic_0000001219149393_b157306586109">location</strong> keyword can still be specified when the database creation, table script migration, or metadata recreation operation is performed by disabling this function temporarily.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="mrs_01_0970__en-us_topic_0000001219149393_section1684764794313"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0970__en-us_topic_0000001219149393_ol181811550174911"><li id="mrs_01_0970__en-us_topic_0000001219149393_li874802051810"><span>Log in to FusionInsight Manager. For details, see <a href="mrs_01_2124.html">Accessing FusionInsight Manager</a>. Choose <strong id="mrs_01_0970__en-us_topic_0000001219149393_b1183135618558">Cluster</strong> > <strong id="mrs_01_0970__en-us_topic_0000001219149393_b831112433514">Services</strong> > <strong id="mrs_01_0970__en-us_topic_0000001219149393_b1311174311514">Hive</strong> > <strong id="mrs_01_0970__en-us_topic_0000001219149393_b173121943195120">Configurations</strong> > <strong id="mrs_01_0970__en-us_topic_0000001219149393_b1831274395113">All Configurations</strong>.</span></li><li id="mrs_01_0970__en-us_topic_0000001219149393_li051003218413"><span>Choose <strong id="mrs_01_0970__en-us_topic_0000001219149393_b981435065112">HiveServer(Role)</strong> > <strong id="mrs_01_0970__en-us_topic_0000001219149393_b181417503513">Customization</strong>, add a customized parameter to the <strong id="mrs_01_0970__en-us_topic_0000001219149393_b5814155085119">hive-site.xml</strong> parameter file, set <strong id="mrs_01_0970__en-us_topic_0000001219149393_b13815950125119">Name</strong> to <strong id="mrs_01_0970__en-us_topic_0000001219149393_b1815250185111">hive.internaltable.notallowlocation</strong>, and set <strong id="mrs_01_0970__en-us_topic_0000001219149393_b14816125013519">Value</strong> to <strong id="mrs_01_0970__en-us_topic_0000001219149393_b10816350145114">true</strong>. Restart all Hive instances after the modification.</span></li><li id="mrs_01_0970__en-us_topic_0000001219149393_li39661191595"><span>Determine whether to enable this function on the Spark2x client.</span><p><ul id="mrs_01_0970__en-us_topic_0000001219149393_ul5967798914"><li id="mrs_01_0970__en-us_topic_0000001219149393_li129671997912">If yes, download and install the Spark2x client again.</li><li id="mrs_01_0970__en-us_topic_0000001219149393_li596799993">If no, no further action is required.</li></ul>
|
|
</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>
|
|
|