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.5 KiB
HTML
22 lines
5.5 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="body1590395285093"><div class="section" id="mrs_01_0971__section1971814572430"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0971__p1960173420419">This function is applicable to Hive and Spark2x for MRS 3.<em id="mrs_01_0971__i14373045185619">x</em> or later, or Hive and Spark for versions earlier than MRS 3.x.</p>
|
|
<p id="mrs_01_0971__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__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__note14914352191118"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0971__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__section3720957144315"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0971__ol181811550174911"><li id="mrs_01_0971__li13806122116487"><span>The Hive service configuration page is displayed.</span><p><ul id="mrs_01_0971__ul1692910323486"><li id="mrs_01_0971__li792916322486">For versions earlier than MRS 1.9.2, log in to MRS Manager, choose <strong id="mrs_01_0971__b77210617434">Services</strong> > <strong id="mrs_01_0971__b147215617434">Hive</strong> > <strong id="mrs_01_0971__b6721460431">Service Configuration</strong>, and select <strong id="mrs_01_0971__b472236174314">All</strong> from the <strong id="mrs_01_0971__b11722156164310">Basic</strong> drop-down list.</li><li id="mrs_01_0971__li979413816488">For MRS 1.9.2 or later, click the cluster name on the MRS console, choose <strong id="mrs_01_0971__b20830946569">Components</strong> > <strong id="mrs_01_0971__b1983012469618">Hive</strong> > <strong id="mrs_01_0971__b283115461610">Service Configuration</strong>, and select <strong id="mrs_01_0971__b1832746762">All</strong> from the <strong id="mrs_01_0971__b683320461616">Basic</strong> drop-down list.<div class="note" id="mrs_01_0971__note73070488542"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0971__p2775113354118">If the <strong id="mrs_01_0971__b2400174015596">Components</strong> tab is unavailable, complete IAM user synchronization first. (On the <strong id="mrs_01_0971__b840634013598">Dashboard</strong> page, click <strong id="mrs_01_0971__b1940664011592">Synchronize</strong> on the right side of <span class="parmname" id="mrs_01_0971__parmname54061240105916"><b>IAM User Sync</b></span> to synchronize IAM users.)</p>
|
|
</div></div>
|
|
</li><li id="mrs_01_0971__li1675864017574">For MRS 3.<em id="mrs_01_0971__i4920124817617">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_0971__b171105506614">Cluster</strong> > <em id="mrs_01_0971__i16111145012619">Name of the desired cluster</em> > <strong id="mrs_01_0971__b911225020617">Services</strong> > <strong id="mrs_01_0971__b611316503615">Hive</strong> > <strong id="mrs_01_0971__b10113550366">Configurations</strong> > <strong id="mrs_01_0971__b311414501765">All Configurations</strong>.</li></ul>
|
|
</p></li><li id="mrs_01_0971__li051003218413"><span>Choose <strong id="mrs_01_0971__b18514114911419">HiveServer(Role)</strong> > <strong id="mrs_01_0971__b651419499417">Customization</strong>, add a customized parameter to the <strong id="mrs_01_0971__b125151249048">hive-site.xml</strong> parameter file, set <strong id="mrs_01_0971__b4515164915413">Name</strong> to <strong id="mrs_01_0971__b65164495413">hive.restrict.create.grant.external.table</strong>, and set <strong id="mrs_01_0971__b551612491044">Value</strong> to <strong id="mrs_01_0971__b195162049947">true</strong>.</span></li><li id="mrs_01_0971__li540112614154"><span>Choose <strong id="mrs_01_0971__b284310527413">MetaStore(Role)</strong> > <strong id="mrs_01_0971__b584995217418">Customization</strong>, add a customized parameter to the <strong id="mrs_01_0971__b108494521041">hivemetastore-site.xml</strong> parameter file, set <strong id="mrs_01_0971__b19850952542">Name</strong> to <strong id="mrs_01_0971__b88501526412">hive.restrict.create.grant.external.table</strong>, and set <strong id="mrs_01_0971__b1285010525412">Value</strong> to <strong id="mrs_01_0971__b58512522418">true</strong>. Restart all Hive instances after the modification.</span></li><li id="mrs_01_0971__li39661191595"><span>Determine whether to enable this function on the Spark/Spark2x client.</span><p><ul id="mrs_01_0971__ul5967798914"><li id="mrs_01_0971__li129671997912">If yes, download and install the Spark/Spark2x client again.</li><li id="mrs_01_0971__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>
|
|
|