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>
38 lines
9.1 KiB
HTML
38 lines
9.1 KiB
HTML
<a name="mrs_01_2350"></a><a name="mrs_01_2350"></a>
|
|
|
|
<h1 class="topictitle1">Creating a HetuEngine Role</h1>
|
|
<div id="body32001227"><p id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_p1710010691120">The system administrator can create and set a <span id="mrs_01_2350__en-us_topic_0000001173631158_text877113445107">HetuEngine</span> role on FusionInsight Manager. The <span id="mrs_01_2350__en-us_topic_0000001173631158_text8172748101018">HetuEngine</span> role can be configured with the HetuEngine administrator permission or the permission of performing operations on the table data.</p>
|
|
<p id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_p131000621120">Creating a database with Hive requires users to join in the Hive group, without granting a role. Users have all permissions on the databases or tables created by themselves in Hive or HDFS. They can create tables, select, delete, insert, or update data, and grant permissions to other users to allow them to access the tables and corresponding HDFS directories and files. The created databases or tables are saved in the <strong id="mrs_01_2350__en-us_topic_0000001173631158_b13718174817158">/user/hive/warehouse</strong> directory of HDFS by default.</p>
|
|
<div class="section" id="mrs_01_2350__en-us_topic_0000001173631158_section12951422192714"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_ol1171755712919"><li id="mrs_01_2350__en-us_topic_0000001173631158_li1429756162516"><span>Log in to FusionInsight Manager.</span></li><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li2071713573910"><span>Choose <strong id="mrs_01_2350__en-us_topic_0000001173631158_b10524185419153">System</strong> > <strong id="mrs_01_2350__en-us_topic_0000001173631158_b1852945418159">Permission</strong> > <strong id="mrs_01_2350__en-us_topic_0000001173631158_b16529754181512">Role</strong>.</span></li><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li1771713571991"><span>Click <strong id="mrs_01_2350__en-us_topic_0000001173631158_b27701855111512">Create Role</strong>, and set <strong id="mrs_01_2350__en-us_topic_0000001173631158_b6770155521518">Role Name</strong> and <strong id="mrs_01_2350__en-us_topic_0000001173631158_b577105520153">Description</strong>.</span></li><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li13717145710918"><span>In the <span class="wintitle" id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_wintitle13636172014"><b>Configure Resource Permission</b></span> area, choose <em id="mrs_01_2350__en-us_topic_0000001173631158_i134405711616">Name of the desired cluster</em> > <strong id="mrs_01_2350__en-us_topic_0000001173631158_b54418716160">Hive</strong> and set role permissions. For details, see <a href="#mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_table1148121718119">Table 1</a>.</span><p><ul id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_ul86181217101115"><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li961818173114"><strong id="mrs_01_2350__en-us_topic_0000001173631158_b16856152911169">Hive Admin Privilege</strong>: Hive administrator permission.</li><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li56182017171114"><strong id="mrs_01_2350__en-us_topic_0000001173631158_b0245143420163">Hive Read Write Privileges</strong>: Hive data table management permission, which is the operation permission to set and manage the data of created tables.</li></ul>
|
|
<div class="note" id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_note14718175117"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_ul116181817131116"><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li206181117101111">Hive role management supports the Hive administrator permission, and the permissions of accessing tables and views, without granting the database permission.</li><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li661931731117">The permissions of the Hive administrator do not include the permission to manage HDFS.</li><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li561941761113">If there are too many tables in the database or too many files in tables, the permission granting may last a while. For example, if a table contains 10,000 files, the permission granting lasts about 2 minutes.</li></ul>
|
|
</div></div>
|
|
|
|
<div class="tablenoborder"><a name="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_table1148121718119"></a><a name="en-us_topic_0000001173631158_en-us_topic_0254454613_table1148121718119"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_table1148121718119" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Setting a role</caption><thead align="left"><tr id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_row361991713111"><th align="left" class="cellrowborder" valign="top" width="23%" id="mcps1.3.3.2.4.2.3.2.3.1.1"><p id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_p961951719113">Scenario</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="77%" id="mcps1.3.3.2.4.2.3.2.3.1.2"><p id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_p1361911761116"><strong id="mrs_01_2350__en-us_topic_0000001173631158_b9751131461818">Role Authorization</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_row9620917151118"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.2.4.2.3.2.3.1.1 "><p id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_p66201817161115">Setting the permission to query a table of another user in the default database</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77%" headers="mcps1.3.3.2.4.2.3.2.3.1.2 "><ol type="a" id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_ol862010173111"><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li2620171714114">In the <strong id="mrs_01_2350__en-us_topic_0000001173631158_b9265112017187">View Name</strong> area, click <strong id="mrs_01_2350__en-us_topic_0000001173631158_b142701920151810">Hive Read Write Privileges</strong>.</li><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li11620161711115">Click the name of the specified database in the database list. Tables in the database are displayed.</li><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li16620191714114">In the <strong id="mrs_01_2350__en-us_topic_0000001173631158_b1418925151812">Permission</strong> column of a specified table, choose <strong id="mrs_01_2350__en-us_topic_0000001173631158_b154231325141815">Select</strong>.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_row136206179112"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.2.4.2.3.2.3.1.1 "><p id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_p2062031701113">Setting the permission to import data to a table of another user in the default database</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="77%" headers="mcps1.3.3.2.4.2.3.2.3.1.2 "><ol type="a" id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_ol56201517131114"><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li1562031791114">In the <strong id="mrs_01_2350__en-us_topic_0000001173631158_b178851324112620">View Name</strong> area, click <strong id="mrs_01_2350__en-us_topic_0000001173631158_b12886122422611">Hive Read Write Privileges</strong>.</li><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li14620817131118">Click the name of the specified database in the database list. Tables in the database are displayed.</li><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li8620161771111">In the <strong id="mrs_01_2350__en-us_topic_0000001173631158_b181771736121814">Permission</strong> column of the specified indexes, select <strong id="mrs_01_2350__en-us_topic_0000001173631158_b13182123661816">Delete</strong> and <strong id="mrs_01_2350__en-us_topic_0000001173631158_b018363691811">Insert</strong>.</li></ol>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li></ol><ol start="5" id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_ol1139216121014"><li id="mrs_01_2350__en-us_topic_0000001173631158_en-us_topic_0254454613_li6393865106"><span>Click <strong id="mrs_01_2350__en-us_topic_0000001173631158_b17861638131819">OK</strong>. Return to the <strong id="mrs_01_2350__en-us_topic_0000001173631158_b108667389185">Role</strong> page.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1724.html">HetuEngine MetaStore-based Permission Control</a></div>
|
|
</div>
|
|
</div>
|
|
|