Yang, Tong 6182f91ba8 MRS component operation guide_normal 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>
2022-12-09 14:55:21 +00:00

19 lines
3.4 KiB
HTML

<a name="mrs_01_24293"></a><a name="mrs_01_24293"></a>
<h1 class="topictitle1">Configuring Hive on HBase in Across Clusters with Mutual Trust Enabled</h1>
<div id="body0000001215079241"><p id="mrs_01_24293__p10461140104514">For mutually trusted Hive and HBase clusters with Kerberos authentication enabled, you can access the HBase cluster and synchronize its key configurations to HiveServer of the Hive cluster.</p>
<div class="section" id="mrs_01_24293__section163151238104613"><h4 class="sectiontitle">Prerequisites</h4><p id="mrs_01_24293__p7751476460">The mutual trust relationship has been configured between the two security clusters with Kerberos authentication enabled.</p>
</div>
<div class="section" id="mrs_01_24293__section105261734483"><h4 class="sectiontitle">Procedure for Configuring Hive on HBase Across Clusters</h4><ol id="mrs_01_24293__ol58441425164811"><li id="mrs_01_24293__li208447254483"><span>Download the HBase configuration file and decompress it.</span><p><ol type="a" id="mrs_01_24293__ol133372159508"><li id="mrs_01_24293__li5629619125017">Log in to FusionInsight Manager of the target HBase cluster and choose <strong id="mrs_01_24293__b11998357514">Cluster</strong> &gt; <strong id="mrs_01_24293__b19867537135919">Services</strong> &gt; <strong id="mrs_01_24293__b7355437355">HBase</strong>.</li><li id="mrs_01_24293__li1631114551238">Choose <strong id="mrs_01_24293__b245144114513">More</strong> &gt; <strong id="mrs_01_24293__b56591543151">Download Client</strong>.</li><li id="mrs_01_24293__li1431283810514">Download the HBase configuration file and choose <strong id="mrs_01_24293__b81317341369">Configuration Files only</strong> for <strong id="mrs_01_24293__b96205119811">Select Client Type</strong>.</li></ol>
</p></li><li id="mrs_01_24293__li1235924213496"><span>Log in to FusionInsight Manager of the source Hive cluster.</span></li><li id="mrs_01_24293__li111107165"><span>Choose <strong id="mrs_01_24293__b174448021214">Cluster</strong> &gt; <strong id="mrs_01_24293__b8180105255913">Services</strong> &gt; <strong id="mrs_01_24293__b29241026120">Hive</strong> and click the <strong id="mrs_01_24293__b2031591521319">Configurations</strong> tab and then <strong id="mrs_01_24293__b19642202621318">All Configurations</strong>. On the displayed page, add the following parameters to the <strong id="mrs_01_24293__b1623672251415">hive-site.xml</strong> configuration file of the HiveServer role.</span><p><p id="mrs_01_24293__p1050313333481">Search for the following parameters in the <strong id="mrs_01_24293__b14458127111611">hbase-site.xml</strong> configuration file of the downloaded HBase client and add them to HiveServer:</p>
<ul id="mrs_01_24293__ul98320273129"><li id="mrs_01_24293__li1027103021217">hbase.security.authentication</li><li id="mrs_01_24293__li1470973219120">hbase.security.authorization</li><li id="mrs_01_24293__li1455218442125">hbase.zookeeper.property.clientPort</li><li id="mrs_01_24293__li617317513124">hbase.zookeeper.quorum (The domain name needs to be converted into an IP address.)</li><li id="mrs_01_24293__li1977005319126">hbase.regionserver.kerberos.principal</li><li id="mrs_01_24293__li523953561214">hbase.master.kerberos.principal</li></ul>
</p></li><li id="mrs_01_24293__li1992105116498"><span>Save the configurations and restart Hive.</span></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>