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.4 KiB
HTML
19 lines
4.4 KiB
HTML
<a name="mrs_01_0636"></a><a name="mrs_01_0636"></a>
|
|
|
|
<h1 class="topictitle1">Configuring Presto Permissions</h1>
|
|
<div id="body1589421630838"><p id="mrs_01_0636__p155979423910">MRS 3.<em id="mrs_01_0636__i1082317359413">x</em> does not enable you to configure Presto permissions.</p>
|
|
<div class="section" id="mrs_01_0636__section03361729163916"><h4 class="sectiontitle">Configuring Presto Permissions in a Security Cluster</h4><p id="mrs_01_0636__p1531104191913">By default, the Hive Catalog authorization of the Presto component is enabled in a security cluster. The Presto permission configuration procedure is as follows:</p>
|
|
<ol id="mrs_01_0636__ol6313817195"><li id="mrs_01_0636__li814216176193"><span>Log in to Manager. For details, see <a href="mrs_01_2124.html">Accessing FusionInsight Manager (MRS 3.x or Later)</a>.</span></li><li id="mrs_01_0636__li104128181912"><span>Choose <strong id="mrs_01_0636__b106182184093028">System</strong> > <strong id="mrs_01_0636__b121872895693028">Manage Role</strong>, configure a role that has the Hive database/table permissions, and bind the role to the user.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="mrs_01_0636__section1790764493916"><h4 class="sectiontitle">Configuring Presto Permissions in a Normal Cluster</h4><p id="mrs_01_0636__p15506162317524">By default, Presto authorization is not enabled in a normal cluster. You need to manually configure Presto permissions as follows:</p>
|
|
<ol id="mrs_01_0636__ol17197203175318"><li id="mrs_01_0636__li171774441884"><span>Go to the MRS cluster details page.</span></li><li id="mrs_01_0636__li17197733533"><span>Choose <strong id="mrs_01_0636__b109914350593028">Components</strong> > <strong id="mrs_01_0636__b191944549793028">Hive</strong>. Set <strong id="mrs_01_0636__b29873545793028">Type</strong> to <strong id="mrs_01_0636__b21458920893028">All</strong>. On the displayed Hive configuration page, modify parameter settings.</span></li><li id="mrs_01_0636__li721712295218"><span>Search for and modify the following parameters:</span><p><ul id="mrs_01_0636__ul463074310217"><li id="mrs_01_0636__li1045920501626">Set <strong id="mrs_01_0636__b108117316593028">hive.security.authorization.enabled</strong> to <strong id="mrs_01_0636__b8293409193028">true</strong>.</li><li id="mrs_01_0636__li1563014437214">Set <strong id="mrs_01_0636__b117378847193028">hive.security.authorization.manager</strong> to <strong id="mrs_01_0636__b197437124093028">org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory</strong>.</li></ul>
|
|
</p></li><li id="mrs_01_0636__li1532517564455"><span>Click <strong id="mrs_01_0636__b52646171793028">Save Configuration</strong> and select <strong id="mrs_01_0636__b51213745693028">Restart the affected services or instances</strong> to restart the Hive service.</span></li><li id="mrs_01_0636__li1393214118917"><span>Choose <strong id="mrs_01_0636__b209978941393028">Components</strong> > <strong id="mrs_01_0636__b127148025693028">Presto</strong>. Set <strong id="mrs_01_0636__b49475670793028">Type</strong> to <strong id="mrs_01_0636__b78378674793028">All</strong>. On the displayed Presto configuration page, modify parameter settings.</span></li><li id="mrs_01_0636__li1192519457919"><span>Search for and modify the value of <strong id="mrs_01_0636__b126386896593028">hive.security</strong> to <strong id="mrs_01_0636__b51646296293028">sql-standard-with-group</strong>.</span></li><li id="mrs_01_0636__li160155616129"><span>Click <strong id="mrs_01_0636__b168930725993028">Save Configuration</strong> and select <strong id="mrs_01_0636__b171588423993028">Restart the affected services or instances</strong> to restart the Presto service.</span></li><li id="mrs_01_0636__li1097515101131"><span>Logging in to MRS Manager</span></li><li id="mrs_01_0636__li17116437137"><span>Choose <strong id="mrs_01_0636__b213982138193028">System</strong> > <strong id="mrs_01_0636__b165639614993028">Change OMS Database Password</strong> > <strong id="mrs_01_0636__b176754749193028">Restart the OMS service</strong>.</span></li><li id="mrs_01_0636__li657016892212"><span>Choose <strong id="mrs_01_0636__b145025557893028">System</strong> > <strong id="mrs_01_0636__b17175869293028">Manage Role</strong>, configure a role that has the Hive database/table permissions, and bind the role to the user.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0432.html">Using Presto</a></div>
|
|
</div>
|
|
</div>
|
|
|