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
5.3 KiB
HTML
22 lines
5.3 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="body1590395285091"><div class="section" id="mrs_01_0970__section18818847144313"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0970__p1960173420419">This function is applicable to Hive and Spark2x for MRS 3.<em id="mrs_01_0970__i47961718115613">x</em> or later, or Hive and Spark for versions earlier than MRS 3.x.</p>
|
|
<p id="mrs_01_0970__p8893047104317">After this function is enabled, the <strong id="mrs_01_0970__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__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__note3429145621213"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0970__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__b572565881019">/warehouse</strong>, the <strong id="mrs_01_0970__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__section1684764794313"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0970__ol181811550174911"><li id="mrs_01_0970__li13806122116487"><span>The Hive service configuration page is displayed.</span><p><ul id="mrs_01_0970__ul1692910323486"><li id="mrs_01_0970__li792916322486">For versions earlier than MRS 1.9.2, log in to MRS Manager, choose <strong id="mrs_01_0970__b1038416599427">Services</strong> > <strong id="mrs_01_0970__b1938420597423">Hive</strong> > <strong id="mrs_01_0970__b238510597422">Service Configuration</strong>, and select <strong id="mrs_01_0970__b1385659114218">All</strong> from the <strong id="mrs_01_0970__b0385459174220">Basic</strong> drop-down list.</li><li id="mrs_01_0970__li979413816488">For MRS 1.9.2 or later, click the cluster name on the MRS console, choose <strong id="mrs_01_0970__b102471335869">Components</strong> > <strong id="mrs_01_0970__b1824812352061">Hive</strong> > <strong id="mrs_01_0970__b524873513612">Service Configuration</strong>, and select <strong id="mrs_01_0970__b62491735761">All</strong> from the <strong id="mrs_01_0970__b182506351969">Basic</strong> drop-down list.<div class="note" id="mrs_01_0970__note73070488542"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0970__p16384816174112">If the <strong id="mrs_01_0970__b5649173115910">Components</strong> tab is unavailable, complete IAM user synchronization first. (On the <strong id="mrs_01_0970__b56497317590">Dashboard</strong> page, click <strong id="mrs_01_0970__b12649631145919">Synchronize</strong> on the right side of <span class="parmname" id="mrs_01_0970__parmname1365053111595"><b>IAM User Sync</b></span> to synchronize IAM users.)</p>
|
|
</div></div>
|
|
</li><li id="mrs_01_0970__li1675864017574">For MRS 3.<em id="mrs_01_0970__i1569215376611">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_0970__b201347391763">Cluster</strong> > <em id="mrs_01_0970__i0135193910610">Name of the desired cluster</em> > <strong id="mrs_01_0970__b1313633915613">Services</strong> > <strong id="mrs_01_0970__b5137173919612">Hive</strong> > <strong id="mrs_01_0970__b91372392610">Configurations</strong> > <strong id="mrs_01_0970__b1913817391069">All Configurations</strong>.</li></ul>
|
|
</p></li><li id="mrs_01_0970__li051003218413"><span>Choose <strong id="mrs_01_0970__b981435065112">HiveServer(Role)</strong> > <strong id="mrs_01_0970__b181417503513">Customization</strong>, add a customized parameter to the <strong id="mrs_01_0970__b5814155085119">hive-site.xml</strong> parameter file, set <strong id="mrs_01_0970__b13815950125119">Name</strong> to <strong id="mrs_01_0970__b1815250185111">hive.internaltable.notallowlocation</strong>, and set <strong id="mrs_01_0970__b14816125013519">Value</strong> to <strong id="mrs_01_0970__b10816350145114">true</strong>. Restart all Hive instances after the modification.</span></li><li id="mrs_01_0970__li39661191595"><span>Determine whether to enable this function on the Spark/Spark2x client.</span><p><ul id="mrs_01_0970__ul5967798914"><li id="mrs_01_0970__li129671997912">If yes, download and install the Spark/Spark2x client again.</li><li id="mrs_01_0970__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>
|
|
|