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>
20 lines
4.2 KiB
HTML
20 lines
4.2 KiB
HTML
<a name="mrs_01_0966"></a><a name="mrs_01_0966"></a>
|
|
|
|
<h1 class="topictitle1">Viewing Table Structures Using the show create Statement as Users with the select Permission</h1>
|
|
<div id="body1590395285086"><div class="section" id="mrs_01_0966__section1315817140356"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0966__p1960173420419">This function is applicable to Hive and Spark2x in MRS 3.x and later.</p>
|
|
<p id="mrs_01_0966__p11230141411353">With this function enabled, if the select permission is granted to a user during Hive table creation, the user can run the <strong id="mrs_01_0966__b030211732019">show create table</strong> command to view the table structure.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_0966__section181627141354"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0966__ol181811550174911"><li id="mrs_01_0966__li13806122116487"><span>The Hive service configuration page is displayed.</span><p><ul id="mrs_01_0966__ul1692910323486"><li id="mrs_01_0966__li792916322486">For versions earlier than MRS 1.9.2, log in to MRS Manager, choose <strong id="mrs_01_0966__b1244212401148">Services</strong> > <strong id="mrs_01_0966__b10442340248">Hive</strong> > <strong id="mrs_01_0966__b5443134011413">Service Configuration</strong>, and select <strong id="mrs_01_0966__b24432401247">All</strong> from the <strong id="mrs_01_0966__b844417401414">Basic</strong> drop-down list.</li><li id="mrs_01_0966__li979413816488">For MRS 1.9.2 or later, click the cluster name on the MRS console, choose <strong id="mrs_01_0966__b921684214419">Components</strong> > <strong id="mrs_01_0966__b521618421241">Hive</strong> > <strong id="mrs_01_0966__b62171242746">Service Configuration</strong>, and select <strong id="mrs_01_0966__b42184421344">All</strong> from the <strong id="mrs_01_0966__b152181042647">Basic</strong> drop-down list.<div class="note" id="mrs_01_0966__note73070488542"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0966__p1891103016406">If the <strong id="mrs_01_0966__b095912295915">Components</strong> tab is unavailable, complete IAM user synchronization first. (On the <strong id="mrs_01_0966__b7959629599">Dashboard</strong> page, click <strong id="mrs_01_0966__b4959182155919">Synchronize</strong> on the right side of <span class="parmname" id="mrs_01_0966__parmname1395982125919"><b>IAM User Sync</b></span> to synchronize IAM users.)</p>
|
|
</div></div>
|
|
</li><li id="mrs_01_0966__li1675864017574">For MRS 3.<em id="mrs_01_0966__i938715441412">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_0966__b133805465412">Cluster</strong> > <em id="mrs_01_0966__i3380174611417">Name of the desired cluster</em> > <strong id="mrs_01_0966__b1938017461742">Services</strong> > <strong id="mrs_01_0966__b6381124618416">Hive</strong> > <strong id="mrs_01_0966__b1838112461748">Configurations</strong> > <strong id="mrs_01_0966__b1538219461849">All Configurations</strong>.</li></ul>
|
|
</p></li><li id="mrs_01_0966__li051003218413"><span>Choose <strong id="mrs_01_0966__b10968125194019">HiveServer(Role)</strong> > <strong id="mrs_01_0966__b89731151134017">Customization</strong>, add a customized parameter to the <strong id="mrs_01_0966__b1797414518403">hive-site.xml</strong> parameter file, set <strong id="mrs_01_0966__b1697410519405">Name</strong> to <strong id="mrs_01_0966__b3975105144016">hive.allow.show.create.table.in.select.nogrant</strong>, and set <strong id="mrs_01_0966__b2097575114404">Value</strong> to <strong id="mrs_01_0966__b1097611510409">true</strong>. Restart all Hive instances after the modification.</span></li><li id="mrs_01_0966__li39661191595"><span>Determine whether to enable this function on the Spark/Spark2x client.</span><p><ul id="mrs_01_0966__ul5967798914"><li id="mrs_01_0966__li129671997912">If yes, download and install the Spark/Spark2x client again.</li><li id="mrs_01_0966__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>
|
|
|