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.5 KiB
HTML
19 lines
4.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="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> > <strong id="mrs_01_0971__en-us_topic_0000001219148919_b52441543742">Services</strong> > <strong id="mrs_01_0971__en-us_topic_0000001219148919_b524564318411">Hive</strong> > <strong id="mrs_01_0971__en-us_topic_0000001219148919_b124514315412">Configurations</strong> > <strong id="mrs_01_0971__en-us_topic_0000001219148919_b52454433419">All Configurations</strong>.</span></li><li id="mrs_01_0971__en-us_topic_0000001219148919_li051003218413"><span>Choose <strong id="mrs_01_0971__en-us_topic_0000001219148919_b18514114911419">HiveServer(Role)</strong> > <strong id="mrs_01_0971__en-us_topic_0000001219148919_b651419499417">Customization</strong>, add a customized parameter to the <strong id="mrs_01_0971__en-us_topic_0000001219148919_b125151249048">hive-site.xml</strong> parameter file, set <strong id="mrs_01_0971__en-us_topic_0000001219148919_b4515164915413">Name</strong> to <strong id="mrs_01_0971__en-us_topic_0000001219148919_b65164495413">hive.restrict.create.grant.external.table</strong>, and set <strong id="mrs_01_0971__en-us_topic_0000001219148919_b551612491044">Value</strong> to <strong id="mrs_01_0971__en-us_topic_0000001219148919_b195162049947">true</strong>.</span></li><li id="mrs_01_0971__en-us_topic_0000001219148919_li540112614154"><span>Choose <strong id="mrs_01_0971__en-us_topic_0000001219148919_b284310527413">MetaStore(Role)</strong> > <strong id="mrs_01_0971__en-us_topic_0000001219148919_b584995217418">Customization</strong>, add a customized parameter to the <strong id="mrs_01_0971__en-us_topic_0000001219148919_b108494521041">hivemetastore-site.xml</strong> parameter file, set <strong id="mrs_01_0971__en-us_topic_0000001219148919_b19850952542">Name</strong> to <strong id="mrs_01_0971__en-us_topic_0000001219148919_b88501526412">hive.restrict.create.grant.external.table</strong>, and set <strong id="mrs_01_0971__en-us_topic_0000001219148919_b1285010525412">Value</strong> to <strong id="mrs_01_0971__en-us_topic_0000001219148919_b58512522418">true</strong>. Restart all Hive instances after the modification.</span></li><li id="mrs_01_0971__en-us_topic_0000001219148919_li39661191595"><span>Determine whether to enable this function on the Spark2x client.</span><p><ul id="mrs_01_0971__en-us_topic_0000001219148919_ul5967798914"><li id="mrs_01_0971__en-us_topic_0000001219148919_li129671997912">If yes, download and install the Spark2x client again.</li><li id="mrs_01_0971__en-us_topic_0000001219148919_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>
|
|
|