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>
165 lines
31 KiB
HTML
165 lines
31 KiB
HTML
<a name="mrs_01_2349"></a><a name="mrs_01_2349"></a>
|
|
|
|
<h1 class="topictitle1">Configuring an HBase Data Source</h1>
|
|
<div id="body32001227"><div class="section" id="mrs_01_2349__en-us_topic_0000001173949888_section20281944184514"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_2349__en-us_topic_0000001173949888_p1662754617458">This section describes how to add an HBase data source on HSConsole.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_2349__en-us_topic_0000001173949888_section197211512297"><h4 class="sectiontitle">Prerequisites</h4><ul id="mrs_01_2349__en-us_topic_0000001219351171_ul1071215716197"><li id="mrs_01_2349__en-us_topic_0000001219351171_li1712871196">The domain name of the cluster where the data source is located must be different from the <span id="mrs_01_2349__en-us_topic_0000001219351171_text06321706326">HetuEngine</span> cluster domain name.</li><li id="mrs_01_2349__en-us_topic_0000001219351171_li1371219711915">The cluster where the data source is located and the <span id="mrs_01_2349__en-us_topic_0000001219351171_text15282374329">HetuEngine</span> cluster nodes can communicate with each other.</li><li id="mrs_01_2349__en-us_topic_0000001219351171_li117681415182710">A <span id="mrs_01_2349__en-us_topic_0000001219351171_text16432927192716">HetuEngine</span> compute instance has been created.</li></ul>
|
|
</div>
|
|
<ul id="mrs_01_2349__en-us_topic_0000001173949888_ul16895155115"><li id="mrs_01_2349__en-us_topic_0000001173949888_li1094981025210">The SSL communication encryption configuration of ZooKeeper in the cluster where the data source is located must be the same as that of ZooKeeper in the cluster where HetuEngine is located.<div class="note" id="mrs_01_2349__en-us_topic_0000001173949888_note5858940742"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2349__en-us_topic_0000001173949888_p74201520351">To check whether SSL communication encryption is enabled, log in to FusionInsight Manager, choose <strong id="mrs_01_2349__en-us_topic_0000001173949888_b2828103344310">Cluster</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1481983534313">Services</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b18721138144319">ZooKeeper</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b8752456433">Configurations</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b12301051154318">All Configurations</strong>, and enter <strong id="mrs_01_2349__en-us_topic_0000001173949888_b991551912445">ssl.enabled</strong> in the search box. If the value of <strong id="mrs_01_2349__en-us_topic_0000001173949888_b5209530330">ssl.enabled</strong> is <strong id="mrs_01_2349__en-us_topic_0000001173949888_b12730230134416">true</strong>, SSL communication encryption is enabled. If the value is <strong id="mrs_01_2349__en-us_topic_0000001173949888_b15869103911441">false</strong>, SSL communication encryption is disabled.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
<div class="section" id="mrs_01_2349__en-us_topic_0000001173949888_section17871824329"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_2349__en-us_topic_0000001173949888_ol1682311245323"><li id="mrs_01_2349__en-us_topic_0000001173949888_li1823132412324"><a name="mrs_01_2349__en-us_topic_0000001173949888_li1823132412324"></a><a name="en-us_topic_0000001173949888_li1823132412324"></a><span>Obtain the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b524017311433">hbase-site.xml</strong>, <strong id="mrs_01_2349__en-us_topic_0000001173949888_b132468324313">hdfs-site.xml</strong>, and <strong id="mrs_01_2349__en-us_topic_0000001173949888_b3246193114316">core-site.xml</strong> configuration files of the HBase data source.</span><p><ol type="a" id="mrs_01_2349__en-us_topic_0000001173949888_ol18198911805"><li id="mrs_01_2349__en-us_topic_0000001173949888_li518416505355">Log in to FusionInsight Manager of the cluster where the HBase data source is located.</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li1619813110017">Choose <strong id="mrs_01_2349__en-us_topic_0000001173949888_b496125282018">Cluster</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b18961452202017">Dashboard</strong>.</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li7198211600">Choose <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1195012150436">More</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b14951131514434">Download Client</strong> and download the client file as prompted.</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li5198201115019">Decompress the downloaded client file package and obtain the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b4852611112914">hbase-site.xml</strong>, <span class="filepath" id="mrs_01_2349__en-us_topic_0000001173949888_filepath191551718164317"><b>core-site.xml</b></span>, and <span class="filepath" id="mrs_01_2349__en-us_topic_0000001173949888_filepath9155101811434"><b>hdfs-site.xml</b></span> files in the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b9155418144310">FusionInsight_Cluster_1_Services_ClientConfig/HBase/config</strong> directory.</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li138692177284">If <strong id="mrs_01_2349__en-us_topic_0000001173949888_b10206146151518">hbase.rpc.client.impl</strong> exists in the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1155781381520">hbase-site.xml</strong> file, change the value of <strong id="mrs_01_2349__en-us_topic_0000001173949888_b5665917101519">hbase.rpc.client.impl</strong> to <strong id="mrs_01_2349__en-us_topic_0000001173949888_b959121111512">org.apache.hadoop.hbase.ipc.RpcClientImpl</strong>.<pre class="screen" id="mrs_01_2349__en-us_topic_0000001173949888_screen111700911915"><property>
|
|
<name>hbase.rpc.client.impl</name>
|
|
<value>org.apache.hadoop.hbase.ipc.RpcClientImpl</value>
|
|
</property></pre>
|
|
<div class="note" id="mrs_01_2349__en-us_topic_0000001173949888_note688143392211"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2349__en-us_topic_0000001173949888_p298513437567">In addition, if the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1632035854711">hdfs-site.xml</strong> and <strong id="mrs_01_2349__en-us_topic_0000001173949888_b332518589477">hbase-site.xml</strong> files reference the host name of a non-<span id="mrs_01_2349__en-us_topic_0000001173949888_text632525864719">HetuEngine</span> cluster node, you need to add the mapping between the referenced host name and the corresponding IP address to the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1232585816479">/etc/hosts</strong> file of each node in the <span id="mrs_01_2349__en-us_topic_0000001173949888_text18325165815478">HetuEngine</span> cluster. Otherwise, <span id="mrs_01_2349__en-us_topic_0000001173949888_text11325125818477">HetuEngine</span> cannot connect to the node that is not in this cluster based on the host name.</p>
|
|
</div></div>
|
|
</li></ol>
|
|
</p></li><li id="mrs_01_2349__en-us_topic_0000001173949888_li1823134583712"><a name="mrs_01_2349__en-us_topic_0000001173949888_li1823134583712"></a><a name="en-us_topic_0000001173949888_li1823134583712"></a><span>Obtain the <span class="filepath" id="mrs_01_2349__en-us_topic_0000001173949888_filepath248603116434"><b>user.keytab</b></span> and <span class="filepath" id="mrs_01_2349__en-us_topic_0000001173949888_filepath2486163104317"><b>krb5.conf</b></span> files of the proxy user of the HBase data source.</span><p><ol type="a" id="mrs_01_2349__en-us_topic_0000001173949888_ol111981311209"><li id="mrs_01_2349__en-us_topic_0000001173949888_li16638644380">Log in to FusionInsight Manager of the cluster where the HBase data source is located.</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li16770184816384">Choose <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1629203744317">System</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b763483714434">Permission</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1563412372432">User</strong>.</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li14198111116014">Locate the row that contains the target data source user, click <strong id="mrs_01_2349__en-us_topic_0000001173949888_b17709173964311">More</strong> in the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b10710113914319">Operation</strong> column, and select <strong id="mrs_01_2349__en-us_topic_0000001173949888_b10710173904312">Download Authentication Credential</strong>.</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li141981011105">Decompress the downloaded package to obtain the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b233517427437">user.keytab</strong> and <strong id="mrs_01_2349__en-us_topic_0000001173949888_b933613423436">krb5.conf</strong> files.</li></ol>
|
|
<div class="note" id="mrs_01_2349__en-us_topic_0000001173949888_note1956919561523"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2349__en-us_topic_0000001173949888_p14569105610522">The proxy user of the data source must have the permission to perform HBase operations.</p>
|
|
</div></div>
|
|
</p></li><li id="mrs_01_2349__en-us_topic_0000001173949888_li7685144993918"><span>Log in to FusionInsight Manager as a <span id="mrs_01_2349__en-us_topic_0000001173949888_text16312536123712">HetuEngine</span> administrator and choose <strong id="mrs_01_2349__en-us_topic_0000001173949888_b7629612135619">Cluster</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b16629612165618">Services</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b6630101215617"><span id="mrs_01_2349__en-us_topic_0000001173949888_text431343693713">HetuEngine</span></strong>. The <strong id="mrs_01_2349__en-us_topic_0000001173949888_b11630161265620"><span id="mrs_01_2349__en-us_topic_0000001173949888_text03135364373">HetuEngine</span></strong> service page is displayed.</span></li><li id="mrs_01_2349__en-us_topic_0000001173949888_li16819175074113"><span>In the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b24751118154419">Basic Information</strong> area on the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b94761186449">Dashboard</strong> page, click the link next to <strong id="mrs_01_2349__en-us_topic_0000001173949888_b13476161824419">HSConsole WebUI</strong>. The HSConsole page is displayed.</span></li><li id="mrs_01_2349__en-us_topic_0000001173949888_li20401201813420"><span>Choose <strong id="mrs_01_2349__en-us_topic_0000001173949888_b4477141413492">Data Source</strong>.</span></li></ol><ol start="6" id="mrs_01_2349__en-us_topic_0000001173949888_ol57591713114218"><li id="mrs_01_2349__en-us_topic_0000001173949888_li1175941319424"><span>Click <strong id="mrs_01_2349__en-us_topic_0000001173949888_b197152203447">Add Data Source</strong>. Configure parameters on the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b189314431901">Add Data Source</strong> page.</span><p><ol type="a" id="mrs_01_2349__en-us_topic_0000001173949888_ol1675931314423"><li id="mrs_01_2349__en-us_topic_0000001173949888_li14755131318423">Configure <span class="parmname" id="mrs_01_2349__en-us_topic_0000001173949888_parmname12309162354413"><b>Basic Information</b></span>. For details, see <a href="#mrs_01_2349__en-us_topic_0000001173949888_table1755613194216">Table 1</a>.
|
|
<div class="tablenoborder"><a name="mrs_01_2349__en-us_topic_0000001173949888_table1755613194216"></a><a name="en-us_topic_0000001173949888_table1755613194216"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_2349__en-us_topic_0000001173949888_table1755613194216" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Basic Information</caption><thead align="left"><tr id="mrs_01_2349__en-us_topic_0000001173949888_row1975318137425"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.1.2.1.1.3.2.4.1.1"><p id="mrs_01_2349__en-us_topic_0000001173949888_p275318139427">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.1.2.1.1.3.2.4.1.2"><p id="mrs_01_2349__en-us_topic_0000001173949888_p9753101334218">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.1.2.1.1.3.2.4.1.3"><p id="mrs_01_2349__en-us_topic_0000001173949888_p11753161317428">Example Value</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_2349__en-us_topic_0000001173949888_row9754121394217"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.1.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p14753191317428">Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.1.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p4753513154212">Name of the data source to be connected.</p>
|
|
<p id="mrs_01_2349__en-us_topic_0000001173949888_p1706553155811">The value can contain only letters, digits, and underscores (_) and must start with a letter.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.1.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p1475491315429">hbase_1</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row14754131315423"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.1.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p15754111314421">Data Source Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.1.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p3754131374220">Type of the data source to be connected. Select <strong id="mrs_01_2349__en-us_topic_0000001173949888_b136622044184417">HBase</strong>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.1.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p5754111317427">HBase</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row14755131334212"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.1.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p1754131316420">Description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.1.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p2075419137425">Description of the data source.</p>
|
|
<p id="mrs_01_2349__en-us_topic_0000001173949888_p202601802591">The value can contain only letters, digits, commas (,), periods (.), underscores (_), spaces, and line breaks.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.1.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p8755413174215">-</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li1675920136425">Configure parameters in the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b67252051154417">HBase Configuration</strong> area. For details, see <a href="#mrs_01_2349__en-us_topic_0000001173949888_table1075911311429">Table 2</a>.
|
|
<div class="tablenoborder"><a name="mrs_01_2349__en-us_topic_0000001173949888_table1075911311429"></a><a name="en-us_topic_0000001173949888_table1075911311429"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_2349__en-us_topic_0000001173949888_table1075911311429" frame="border" border="1" rules="all"><caption><b>Table 2 </b>HBase Configuration</caption><thead align="left"><tr id="mrs_01_2349__en-us_topic_0000001173949888_row875681317427"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.1.2.1.2.3.2.4.1.1"><p id="mrs_01_2349__en-us_topic_0000001173949888_p475571312428">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.1.2.1.2.3.2.4.1.2"><p id="mrs_01_2349__en-us_topic_0000001173949888_p67558135426">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.3.1.2.1.2.3.2.4.1.3"><p id="mrs_01_2349__en-us_topic_0000001173949888_p1975551354216">Example Value</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_2349__en-us_topic_0000001173949888_row15756111304214"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p17756191315420">Driver</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p2756121324219">The default value is <strong id="mrs_01_2349__en-us_topic_0000001173949888_b118651194466">hbase-connector</strong>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p375621313422">hbase-connector</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row18756191317429"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p7756201364219">ZooKeeper Quorum Address</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p13641234204517">Service IP addresses of all quorumpeer instances of the ZooKeeper service for the data source. If the ZooKeeper service of the data source uses IPv6, you need to specify the client port number in the ZooKeeper Quorum address.</p>
|
|
<p id="mrs_01_2349__en-us_topic_0000001173949888_p2756101354211">Log in to FusionInsight Manager, choose <strong id="mrs_01_2349__en-us_topic_0000001173949888_b7914517154711">Cluster</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b223741174816">Services</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b837014411488">ZooKeeper</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b2052814712482">Instance</strong>, and view the IP addresses of all the hosts housing the quorumpeer instances.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><ul id="mrs_01_2349__en-us_topic_0000001173949888_ul954518496817"><li id="mrs_01_2349__en-us_topic_0000001173949888_li1032011546815">IPv4: 10.0.136.132,10.0.136.133,10.0.136.134</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li35467491289">IPv6: [0.0.0.0.0.0.0.0]:24002</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row1975781315423"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p19756131354214">ZooKeeper Client Port Number</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p1166716173508">Port number of the ZooKeeper client.</p>
|
|
<p id="mrs_01_2349__en-us_topic_0000001173949888_p975621319425">Log in to FusionInsight Manager and choose <strong id="mrs_01_2349__en-us_topic_0000001173949888_b934518407567">Cluster</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b7895124205618">Service</strong> > <strong id="mrs_01_2349__en-us_topic_0000001173949888_b137644555614">ZooKeeper</strong>. On the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b552874920565">Configurations</strong> tab page, check the value of <span class="parmname" id="mrs_01_2349__en-us_topic_0000001173949888_parmname5781222514"><b>clientPort</b></span>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p1757913144219">2181</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row167578136422"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p167571313114219">HBase RPC Communication Protection</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p59582317419">Set this parameter based on the value of <strong id="mrs_01_2349__en-us_topic_0000001173949888_b63073248502">hbase.rpc.protection</strong> in the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b01911237135015">hbase-site.xml</strong> file obtained in <a href="#mrs_01_2349__en-us_topic_0000001173949888_li1823132412324">1</a>.</p>
|
|
<ul id="mrs_01_2349__en-us_topic_0000001173949888_ul1661114714419"><li id="mrs_01_2349__en-us_topic_0000001173949888_li35502042952">If the value is <span class="parmvalue" id="mrs_01_2349__en-us_topic_0000001173949888_parmvalue3551194211511"><b>authentication</b></span>, set this parameter to <strong id="mrs_01_2349__en-us_topic_0000001173949888_b8551422155119">No</strong>.</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li361237845">If the value is <strong id="mrs_01_2349__en-us_topic_0000001173949888_b3947154385115">privacy</strong>, set this parameter to <strong id="mrs_01_2349__en-us_topic_0000001173949888_b114037347519">Yes</strong>.</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p1275721313421">No</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row187571813144217"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p1075717135423">Security Authentication Mechanism</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p1475791317429">After the security mode is enabled, the default value is <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1872534995118">KERBEROS</strong>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p1275791312422">KERBEROS</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row107572133426"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p175781319428">Principal</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p10757111384215">Configure this parameter when the security authentication mechanism is enabled. Set the parameter to the user to whom the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b8349842115219">user.keytab</strong> file obtained in <a href="#mrs_01_2349__en-us_topic_0000001173949888_li1823134583712">2</a> belongs.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p187570136422">user_hbase@HADOOP2.COM</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row6758191304215"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p575761324216">Keytab File</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p27579136424">Configure this parameter when the security mode is enabled. It specifies the security authentication key. Select the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b576726145412">user.keytab</strong> file obtained in <a href="#mrs_01_2349__en-us_topic_0000001173949888_li1823134583712">2</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p2758151354217">user.keytab</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row14758111324211"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p177581513154213">krb5 File</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p16758191315423">Configure this parameter when the security mode is enabled. It is the configuration file used for Kerberos authentication. Select the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b6394920165417">krb5.conf</strong> file obtained in <a href="#mrs_01_2349__en-us_topic_0000001173949888_li1823134583712">2</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p187581113164218">krb5.conf</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row575831316424"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p77587138424">hbase-site File</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p1575810135428">Configure this parameter when the security mode is enabled. It is the configuration file required for connecting to HDFS. Select the <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1073933115511">hbase-site.xml</strong> file obtained in <a href="#mrs_01_2349__en-us_topic_0000001173949888_li1823132412324">1</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p07582135421">hbase-site.xml</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row1775851384215"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p275816131429">core-site File</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p975812138428">Configure this parameter when the security mode is enabled. This file is required for connecting to HDFS. Select the <span class="filepath" id="mrs_01_2349__en-us_topic_0000001173949888_filepath156115266159"><b>core-site.xml</b></span> file obtained in <a href="#mrs_01_2349__en-us_topic_0000001173949888_li1823132412324">1</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p147587132426">core-site.xml</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_2349__en-us_topic_0000001173949888_row1475914132426"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.1 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p1975810131420">hdfs-site File</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.2 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p3758161374220">Configure this parameter when the security mode is enabled. This file is required for connecting to HDFS. Select the <span class="filepath" id="mrs_01_2349__en-us_topic_0000001173949888_filepath115219468555"><b>hdfs-site.xml</b></span> file obtained in <a href="#mrs_01_2349__en-us_topic_0000001173949888_li1823132412324">1</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.3.1.2.1.2.3.2.4.1.3 "><p id="mrs_01_2349__en-us_topic_0000001173949888_p0758191313420">hdfs-site.xml</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li167597132427">Modify custom configurations.<ul id="mrs_01_2349__en-us_topic_0000001173949888_ul107591137426"><li id="mrs_01_2349__en-us_topic_0000001173949888_li14759413184214">You can click <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1060491315614">Add</strong> to add custom configuration parameters.</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li375921312428">You can click <strong id="mrs_01_2349__en-us_topic_0000001173949888_b109551515185613">Delete</strong> to delete custom configuration parameters.</li></ul>
|
|
</li><li id="mrs_01_2349__en-us_topic_0000001173949888_li10759151384219">Click <strong id="mrs_01_2349__en-us_topic_0000001173949888_b424061818565">OK</strong>.</li></ol>
|
|
</p></li><li id="mrs_01_2349__en-us_topic_0000001173949888_li203291026162813"><span>Log in to the node where the cluster client is located and run the following commands to switch to the client installation directory and authenticate the user:</span><p><p id="mrs_01_2349__en-us_topic_0000001173949888_p28761056204315"><strong id="mrs_01_2349__en-us_topic_0000001173949888_b687615694311">cd /opt/client</strong></p>
|
|
<p id="mrs_01_2349__en-us_topic_0000001173949888_p16876175617437"><strong id="mrs_01_2349__en-us_topic_0000001173949888_b12876195684320">source bigdata_env</strong></p>
|
|
<p id="mrs_01_2349__en-us_topic_0000001173949888_p1087323193213"><strong id="mrs_01_2349__en-us_topic_0000001173949888_b2361925112411">kinit</strong><em id="mrs_01_2349__en-us_topic_0000001173949888_i1536325182417"> User performing <span id="mrs_01_2349__en-us_topic_0000001173949888_text13361625122419">HetuEngine</span> operations</em> (If the cluster is in normal mode, skip this step.)</p>
|
|
</p></li><li id="mrs_01_2349__en-us_topic_0000001173949888_li125901127545"><span>Run the following command to log in to the catalog of the data source:</span><p><p id="mrs_01_2349__en-us_topic_0000001173949888_p13590121255419"><strong id="mrs_01_2349__en-us_topic_0000001173949888_b1659012128543">hetu-cli --catalog </strong><em id="mrs_01_2349__en-us_topic_0000001173949888_i1590171265414">Data source name</em> <strong id="mrs_01_2349__en-us_topic_0000001173949888_b1359011126546">--schema default</strong></p>
|
|
<p id="mrs_01_2349__en-us_topic_0000001173949888_p7590412135413">For example, run the following command:</p>
|
|
<p id="mrs_01_2349__en-us_topic_0000001173949888_p8590171210542"><strong id="mrs_01_2349__en-us_topic_0000001173949888_b1659021214546">hetu-cli --catalog </strong><strong id="mrs_01_2349__en-us_topic_0000001173949888_b15700105518540">hbase_1</strong> <strong id="mrs_01_2349__en-us_topic_0000001173949888_b105908121548">--schema default</strong></p>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_2314.html">Configuring Data Sources</a></div>
|
|
</div>
|
|
</div>
|
|
|