1
0
forked from docs/doc-exports
Yang, Tong 48706b7552 MRS COMP-LTS 320-lts.1 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-04-12 12:51:10 +00:00

21 lines
5.3 KiB
HTML

<a name="mrs_01_0971"></a><a name="mrs_01_0971"></a>
<h1 class="topictitle1">Enabling the Function of Creating a Foreign Table in a Directory That Can Only Be Read</h1>
<div id="body8662426"><div class="section" id="mrs_01_0971__en-us_topic_0000001219148919_section1971814572430"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0971__en-us_topic_0000001219148919_p1960173420419">This function is applicable to Hive and Spark2x.</p>
<p id="mrs_01_0971__en-us_topic_0000001219148919_p67618575439">After this function is enabled, the user or user group that has the read and execute permissions on a directory can create foreign tables in the directory without checking whether the current user is the owner of the directory. In addition, the directory of a foreign table cannot be stored in the default directory <strong id="mrs_01_0971__en-us_topic_0000001219148919_b1380725111518">\warehouse</strong>. In addition, do not change the permission of the directory during foreign table authorization.</p>
<div class="note" id="mrs_01_0971__en-us_topic_0000001219148919_note14914352191118"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0971__en-us_topic_0000001219148919_p091565218118">After this function is enabled, the function of the foreign table changes greatly. Based on the actual application scenario, determine whether to enable this function.</p>
</div></div>
</div>
<div class="section" id="mrs_01_0971__en-us_topic_0000001219148919_section3720957144315"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0971__en-us_topic_0000001219148919_ol181811550174911"><li id="mrs_01_0971__en-us_topic_0000001219148919_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_0971__en-us_topic_0000001219148919_b337916815563">Cluster</strong> &gt; <strong id="mrs_01_0971__en-us_topic_0000001219148919_b52441543742">Services</strong> &gt; <strong id="mrs_01_0971__en-us_topic_0000001219148919_b524564318411">Hive</strong> &gt; <strong id="mrs_01_0971__en-us_topic_0000001219148919_b124514315412">Configurations</strong> &gt; <strong id="mrs_01_0971__en-us_topic_0000001219148919_b52454433419">All Configurations</strong>.</span></li><li id="mrs_01_0971__li9934543454"><span>Modify parameters and restart related instances:</span><p><ul id="mrs_01_0971__ul98781554663"><li id="mrs_01_0971__li198795541962">For versions earlier than MRS 3.2.0:<ol type="a" id="mrs_01_0971__ol2571199192"><li id="mrs_01_0971__li145729912919">Choose <strong id="mrs_01_0971__b723822011916">MetaStore(Role)</strong> &gt; <strong id="mrs_01_0971__b7238620799">Customization</strong>, add a custom parameter to the <strong id="mrs_01_0971__b15238132015914">hivemetastore-site.xml</strong> parameter file, and set <strong id="mrs_01_0971__b182384203917">Name</strong> to <strong id="mrs_01_0971__b32385207911">hive.supports.over.32.roles</strong> and <strong id="mrs_01_0971__b22381820895">Value</strong> to <strong id="mrs_01_0971__b4238720799">true</strong>.</li><li id="mrs_01_0971__li15653211599">Choose <strong id="mrs_01_0971__b6350183016917">HiveServer(Role)</strong> &gt; <strong id="mrs_01_0971__b133502301991">Customization</strong> for versions earlier than MRS 3.2.0, add a custom parameter to the <strong id="mrs_01_0971__b113501330396">hive-site.xml</strong> parameter file, set <strong id="mrs_01_0971__b135015303911">Name</strong> to <strong id="mrs_01_0971__b5350153019916">hive.supports.over.32.roles</strong>, and set <strong id="mrs_01_0971__b10350183018919">Value</strong> to <strong id="mrs_01_0971__b1435012308914">true</strong>.</li><li id="mrs_01_0971__li1736143610917">Click <strong id="mrs_01_0971__b10575113031011">Save</strong> to save the configuration.</li><li id="mrs_01_0971__li03851034141016">Click <strong id="mrs_01_0971__b1197714316113">Instance</strong>, select all Hive instances, and choose <strong id="mrs_01_0971__b16800352127">More</strong> &gt; <strong id="mrs_01_0971__b644711971212">Restart</strong> Instance to restart all Hive instances.</li></ol>
</li><li id="mrs_01_0971__li1318917477713">For MRS 3.2.0 or later:<ol type="a" id="mrs_01_0971__ol18062044191211"><li id="mrs_01_0971__li473165115124">Choose <strong id="mrs_01_0971__b3732155121218">MetaStore(Role)</strong> &gt; <strong id="mrs_01_0971__b147321451101219">Customization</strong>, add a custom parameter to the <strong id="mrs_01_0971__b1473285111121">hivemetastore-site.xml</strong> parameter file, and set <strong id="mrs_01_0971__b27326518122">Name</strong> to <strong id="mrs_01_0971__b273245114126">hive.supports.over.32.roles</strong> and <strong id="mrs_01_0971__b1673215121218">Value</strong> to <strong id="mrs_01_0971__b173245171216">true</strong>.</li><li id="mrs_01_0971__li2732325137">Click <strong id="mrs_01_0971__b15732102191317">Save</strong> to save the configuration.</li><li id="mrs_01_0971__li17571383130">Click <strong id="mrs_01_0971__b8757686139">Instance</strong>, select all MetaStore instances, and choose <strong id="mrs_01_0971__b37572813136">More</strong> &gt; <strong id="mrs_01_0971__b17574831310">Restart</strong> Instance to restart all MetaStore instances.</li></ol>
</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>