Yang, Tong 3f5759eed2 MRS comp-lts 2.0.38.SP20 version
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>
2023-01-19 17:08:45 +00:00

17 lines
3.1 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="body8662426"><div class="section" id="mrs_01_0966__en-us_topic_0000001173630894_section1315817140356"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0966__en-us_topic_0000001173630894_p1960173420419">This function is applicable to Hive and Spark2x in.</p>
<p id="mrs_01_0966__en-us_topic_0000001173630894_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__en-us_topic_0000001173630894_b030211732019">show create table</strong> command to view the table structure.</p>
</div>
<div class="section" id="mrs_01_0966__en-us_topic_0000001173630894_section181627141354"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0966__en-us_topic_0000001173630894_ol181811550174911"><li id="mrs_01_0966__en-us_topic_0000001173630894_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_0966__en-us_topic_0000001173630894_b1649443665414">Cluster</strong> &gt; <strong id="mrs_01_0966__en-us_topic_0000001173630894_b3855134104017">Services</strong> &gt; <strong id="mrs_01_0966__en-us_topic_0000001173630894_b15856134124010">Hive</strong> &gt; <strong id="mrs_01_0966__en-us_topic_0000001173630894_b38567411402">Configurations</strong> &gt; <strong id="mrs_01_0966__en-us_topic_0000001173630894_b885734114401">All Configurations</strong>.</span></li><li id="mrs_01_0966__en-us_topic_0000001173630894_li051003218413"><span>Choose <strong id="mrs_01_0966__en-us_topic_0000001173630894_b10968125194019">HiveServer(Role)</strong> &gt; <strong id="mrs_01_0966__en-us_topic_0000001173630894_b89731151134017">Customization</strong>, add a customized parameter to the <strong id="mrs_01_0966__en-us_topic_0000001173630894_b1797414518403">hive-site.xml</strong> parameter file, set <strong id="mrs_01_0966__en-us_topic_0000001173630894_b1697410519405">Name</strong> to <strong id="mrs_01_0966__en-us_topic_0000001173630894_b3975105144016">hive.allow.show.create.table.in.select.nogrant</strong>, and set <strong id="mrs_01_0966__en-us_topic_0000001173630894_b2097575114404">Value</strong> to <strong id="mrs_01_0966__en-us_topic_0000001173630894_b1097611510409">true</strong>. Restart all Hive instances after the modification.</span></li><li id="mrs_01_0966__en-us_topic_0000001173630894_li39661191595"><span>Determine whether to enable this function on the Spark2x client.</span><p><ul id="mrs_01_0966__en-us_topic_0000001173630894_ul5967798914"><li id="mrs_01_0966__en-us_topic_0000001173630894_li129671997912">If yes, download and install the Spark2x client again.</li><li id="mrs_01_0966__en-us_topic_0000001173630894_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>