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

159 lines
31 KiB
HTML

<a name="mrs_01_2337"></a><a name="mrs_01_2337"></a>
<h1 class="topictitle1">Using DBeaver to Access HetuEngine</h1>
<div id="body32001227"><p id="mrs_01_2337__en-us_topic_0000001219029577_p39971623131118">This section uses DBeaver 6.3.5 as an example to describe how to perform operations on <span id="mrs_01_2337__en-us_topic_0000001219029577_text2361165118404">HetuEngine</span>.</p>
<div class="section" id="mrs_01_2337__en-us_topic_0000001219029577_section10331142641215"><h4 class="sectiontitle">Prerequisites</h4><ul id="mrs_01_2337__en-us_topic_0000001219029577_ul3839938134"><li id="mrs_01_2337__en-us_topic_0000001219029577_li78391531138">The DBeaver has been installed properly. Download the DBeaver software from <a href="https://dbeaver.io/files/6.3.5/" target="_blank" rel="noopener noreferrer">https://dbeaver.io/files/6.3.5/</a>.<div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note1640815355148"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2337__en-us_topic_0000001219029577_p154081135131418">Currently, DBeaver 5.<em id="mrs_01_2337__en-us_topic_0000001219029577_i16231625185217">x</em> and 6.<em id="mrs_01_2337__en-us_topic_0000001219029577_i194381627175211">x</em> are supported.</p>
</div></div>
</li><li id="mrs_01_2337__en-us_topic_0000001219029577_li527205219137">A human-machine user has been created in the cluster. For details about how to create a user, see <a href="mrs_01_1714.html">Creating a HetuEngine User</a>.</li></ul>
</div>
<div class="section" id="mrs_01_2337__en-us_topic_0000001219029577_section129571114153515"><h4 class="sectiontitle">Procedure</h4><p id="mrs_01_2337__en-us_topic_0000001219029577_p961820346398">Method 1: Using ZooKeeper to access <span id="mrs_01_2337__en-us_topic_0000001219029577_text14891443104010">HetuEngine</span></p>
<ol id="mrs_01_2337__en-us_topic_0000001219029577_ol18353122031620"><li id="mrs_01_2337__en-us_topic_0000001219029577_li1747527125"><a name="mrs_01_2337__en-us_topic_0000001219029577_li1747527125"></a><a name="en-us_topic_0000001219029577_li1747527125"></a><span>Download the <span id="mrs_01_2337__en-us_topic_0000001219029577_text19481427322">HetuEngine</span> client.</span><p><ol type="a" id="mrs_01_2337__en-us_topic_0000001219029577_ol7820430621"><li id="mrs_01_2337__en-us_topic_0000001219029577_li65431350133">Log in to FusionInsight Manager.</li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1688612424572">Choose <strong id="mrs_01_2337__en-us_topic_0000001219029577_b33591652165213">Cluster</strong> &gt; <strong id="mrs_01_2337__en-us_topic_0000001219029577_b24451954155214">Services</strong> &gt; <strong id="mrs_01_2337__en-us_topic_0000001219029577_b192118241544"><span id="mrs_01_2337__en-us_topic_0000001219029577_text1678211217589">HetuEngine</span></strong> &gt; <strong id="mrs_01_2337__en-us_topic_0000001219029577_b583113531">Dashboard</strong>.</li><li id="mrs_01_2337__en-us_topic_0000001219029577_li13953318105817">In the upper right corner of the page, choose <strong id="mrs_01_2337__en-us_topic_0000001219029577_b5264176537">More</strong> &gt; <strong id="mrs_01_2337__en-us_topic_0000001219029577_b1990151917538">Download Client</strong> and download the <span class="parmvalue" id="mrs_01_2337__en-us_topic_0000001219029577_parmvalue1692918355398"><b>Complete Client</b></span> to the local PC as prompted.</li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1727232161619"><a name="mrs_01_2337__en-us_topic_0000001219029577_li1727232161619"></a><a name="en-us_topic_0000001219029577_li1727232161619"></a>Decompress the <span id="mrs_01_2337__en-us_topic_0000001219029577_text33661017164113">HetuEngine</span> client package <strong id="mrs_01_2337__en-us_topic_0000001219029577_b2096124844019">FusionInsight_Cluster_</strong><em id="mrs_01_2337__en-us_topic_0000001219029577_i983133743915">Cluster ID</em><strong id="mrs_01_2337__en-us_topic_0000001219029577_b1997148124018">_ <span id="mrs_01_2337__en-us_topic_0000001219029577_text11315321741">HetuEngine</span>_Client.tar</strong> to obtain the JDBC file and save it to a local directory, for example, <strong id="mrs_01_2337__en-us_topic_0000001219029577_b111037598416">D:\test</strong>.<div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note1720414335176"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2337__en-us_topic_0000001219029577_p074211522253">Obtaining the JDBC file:</p>
<p id="mrs_01_2337__en-us_topic_0000001219029577_p1060315442618">Obtain the <strong id="mrs_01_2337__en-us_topic_0000001219029577_b987705184017">hetu-jdbc-*.jar</strong> file from the <strong id="mrs_01_2337__en-us_topic_0000001219029577_b78786510402">FusionInsight_Cluster_</strong><em id="mrs_01_2337__en-us_topic_0000001219029577_i287875164014">Cluster ID</em><strong id="mrs_01_2337__en-us_topic_0000001219029577_b1387855194013">_<span id="mrs_01_2337__en-us_topic_0000001219029577_text8878551401">HetuEngine</span>_ClientConfig\<span id="mrs_01_2337__en-us_topic_0000001219029577_text4878155401">HetuEngine</span>\xxx\</strong> directory.</p>
<p id="mrs_01_2337__en-us_topic_0000001219029577_p53655152812">Note: <strong id="mrs_01_2337__en-us_topic_0000001219029577_b450119104215">xxx</strong> can be <strong id="mrs_01_2337__en-us_topic_0000001219029577_b5755182854210">arm</strong> or <strong id="mrs_01_2337__en-us_topic_0000001219029577_b182321330104214">x86</strong>.</p>
</div></div>
</li></ol>
</p></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li14377101920316"><span>Download the Kerberos authentication file of the <span id="mrs_01_2337__en-us_topic_0000001219029577_text123781519831">HetuEngine</span> user.</span><p><ol type="a" id="mrs_01_2337__en-us_topic_0000001219029577_ol1249213211838"><li id="mrs_01_2337__en-us_topic_0000001219029577_li0630211941">Log in to FusionInsight Manager.</li><li id="mrs_01_2337__en-us_topic_0000001219029577_li11141995610">Choose <strong id="mrs_01_2337__en-us_topic_0000001219029577_b1413175415542">System</strong> &gt; <strong id="mrs_01_2337__en-us_topic_0000001219029577_b41367541544">Permission</strong> &gt; <strong id="mrs_01_2337__en-us_topic_0000001219029577_b1713713549544">User</strong>.</li><li id="mrs_01_2337__en-us_topic_0000001219029577_li17947340185317">Locate the row that contains the target <span id="mrs_01_2337__en-us_topic_0000001219029577_text136680321346">HetuEngine</span> user, click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b34001515105516">More</strong> in the <strong id="mrs_01_2337__en-us_topic_0000001219029577_b114921518115514">Operation</strong> column, and select <strong id="mrs_01_2337__en-us_topic_0000001219029577_b6874182019555">Download Authentication Credential</strong>.</li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1694712408531">Decompress the downloaded package to obtain the <strong id="mrs_01_2337__en-us_topic_0000001219029577_b104710420569">user.keytab</strong> and <strong id="mrs_01_2337__en-us_topic_0000001219029577_b1266104411561">krb5.conf</strong> files.</li></ol>
</p></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1733155142418"><span>Log in to the node where the HSBroker role is deployed in the cluster as user <strong id="mrs_01_2337__en-us_topic_0000001219029577_b125802014175718">omm</strong>, go to the <strong id="mrs_01_2337__en-us_topic_0000001219029577_b166991132582">${BIGDATA_HOME}/FusionInsight_Hetu_<span id="mrs_01_2337__en-us_topic_0000001219029577_text672655514191">8.1.2.2</span>/</strong><strong id="mrs_01_2337__en-us_topic_0000001219029577_b116999314580"><em id="mrs_01_2337__en-us_topic_0000001219029577_en-us_topic_0254454673_i933303210232">xxx</em></strong><strong id="mrs_01_2337__en-us_topic_0000001219029577_b5699432589">_HSBroker/etc/</strong> directory, and download the <span class="filepath" id="mrs_01_2337__en-us_topic_0000001219029577_en-us_topic_0254454673_filepath8333123220239"><b>jaas-zk.conf</b></span> and <span class="filepath" id="mrs_01_2337__en-us_topic_0000001219029577_en-us_topic_0254454673_filepath6333123219231"><b>hetuserver.jks</b></span> files to the local PC.</span><p><div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note1914341451016"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2337__en-us_topic_0000001219029577_p41441914101019"><span id="mrs_01_2337__en-us_topic_0000001219029577_text1048494020412">The version 8.1.2.2 is used as an example. Replace it with the actual version number.</span></p>
</div></div>
<p id="mrs_01_2337__en-us_topic_0000001219029577_en-us_topic_0254454673_p5291317115015">Modify the <span class="filepath" id="mrs_01_2337__en-us_topic_0000001219029577_filepath853985118104"><b>jaas-zk.conf</b></span> file as follows. <span class="parmname" id="mrs_01_2337__en-us_topic_0000001219029577_parmname12539105113107"><b>keyTab</b></span> is the keytab file path of the user who accesses <span id="mrs_01_2337__en-us_topic_0000001219029577_text11540115191018">HetuEngine</span>, and <strong id="mrs_01_2337__en-us_topic_0000001219029577_b1154035113107">principal</strong> is <em id="mrs_01_2337__en-us_topic_0000001219029577_i13540145116101">Username for accessing <span id="mrs_01_2337__en-us_topic_0000001219029577_text1054045121020">HetuEngine</span></em><strong id="mrs_01_2337__en-us_topic_0000001219029577_b11540451171020">@Domain name in uppercase.COM</strong>.</p>
<pre class="screen" id="mrs_01_2337__en-us_topic_0000001219029577_en-us_topic_0254454673_screen648882695014">Client {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="D:\\tmp\\user.keytab"
principal="admintest@HADOOP.COM"
useTicketCache=false
storeKey=true
debug=true;
};</pre>
</p></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li102061280714"><span>Add the host mapping to the local <strong id="mrs_01_2337__en-us_topic_0000001219029577_b1411314351603">hosts</strong> file. The content format is as follows:</span><p><p id="mrs_01_2337__en-us_topic_0000001219029577_p3547831271"><em id="mrs_01_2337__en-us_topic_0000001219029577_i9428414172">Host IP address Host name</em></p>
<p id="mrs_01_2337__en-us_topic_0000001219029577_p1318183715250">Example: 192.168.23.221 192-168-23-221</p>
<div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note496015462138"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2337__en-us_topic_0000001219029577_p02872931510">The local <strong id="mrs_01_2337__en-us_topic_0000001219029577_b71874382515">hosts</strong> file in a Windows environment is stored in, for example, <strong id="mrs_01_2337__en-us_topic_0000001219029577_b101864319256">C:\Windows\System32\drivers\etc</strong>.</p>
</div></div>
</p></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li11836133317258"><span>Configure the DBeaver startup file <strong id="mrs_01_2337__en-us_topic_0000001219029577_b1133511434359">dbeaver.ini</strong>.</span><p><ol type="a" id="mrs_01_2337__en-us_topic_0000001219029577_ol2311717102616"><li id="mrs_01_2337__en-us_topic_0000001219029577_li14310173262">Add the Java path to the file.<pre class="screen" id="mrs_01_2337__en-us_topic_0000001219029577_en-us_topic_0254454673_screen1038161712811">-VM
C:\Program Files\Java\jdk1.8.0_131\bin</pre>
</li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1741443622618">Set the ZooKeeper and Kerberos parameters by referring to the following parameters. Replace the file paths with the actual paths.<pre class="screen" id="mrs_01_2337__en-us_topic_0000001219029577_screen8194985292">-Dsun.security.krb5.debug=true
-Djava.security.auth.login.config=D:\tmp\jaas-zk.conf
-Dzookeeper.sasl.clientconfig=Client
-Dzookeeper.auth.type=kerberos
-Djava.security.krb5.conf=D:\tmp\krb5.conf</pre>
<div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note129038376299"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_2337__en-us_topic_0000001219029577_ul23531746202915"><li id="mrs_01_2337__en-us_topic_0000001219029577_li1035316462299">The Greenwich Mean Time (GMT) is not supported. If the current time zone is GMT+, add <strong id="mrs_01_2337__en-us_topic_0000001219029577_b589913191944">-Duser.timezone=UTC</strong> to the <span class="filepath" id="mrs_01_2337__en-us_topic_0000001219029577_filepath1135115441482"><b>dbeaver.ini</b></span> file to change the time zone to UTC.</li><li id="mrs_01_2337__en-us_topic_0000001219029577_li19736653152916">If DBeaver is started, restart the DBeaver software for the new configuration items in the <span class="filepath" id="mrs_01_2337__en-us_topic_0000001219029577_filepath192345511281"><b>dbeaver.ini</b></span> file to take effect.</li></ul>
</div></div>
</li></ol>
</p></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li7979190142615"><span>Start the DBeaver, right-click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b55812102519">Database Navigator</strong>, and click <span class="uicontrol" id="mrs_01_2337__en-us_topic_0000001219029577_en-us_topic_0254454673_uicontrol125971913105716"><b>Create New Connection</b></span>.</span></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li373741593015"><span>Search for <strong id="mrs_01_2337__en-us_topic_0000001219029577_b178812261858">Presto</strong> in the search box and double-click the Presto icon.</span></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1240182310307"><span>Click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b986915431551">Edit Driver Settings</strong>.</span></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1547483715308"><span>Set <span class="parmname" id="mrs_01_2337__en-us_topic_0000001219029577_en-us_topic_0254454673_parmname870420302581"><b>Class Name</b></span> to <strong id="mrs_01_2337__en-us_topic_0000001219029577_b01101461953">io.prestosql.jdbc.PrestoDriver</strong>.</span></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li16473164518301"><span>Enter the URL of <span id="mrs_01_2337__en-us_topic_0000001219029577_text138739764612">HetuEngine</span> in the <span class="parmname" id="mrs_01_2337__en-us_topic_0000001219029577_en-us_topic_0254454673_parmname1598152910236"><b>URL Template</b></span> text box.</span><p><p id="mrs_01_2337__en-us_topic_0000001219029577_p7516401499">URL format: jdbc:presto://<em id="mrs_01_2337__en-us_topic_0000001219029577_i060225315529">IP address of node 1 where the ZooKeeper service resides</em>:2181,<em id="mrs_01_2337__en-us_topic_0000001219029577_i8607125355211">IP address of node 2 where the ZooKeeper service resides</em>:2181,<em id="mrs_01_2337__en-us_topic_0000001219029577_i860819538524">IP address of node 3 where the ZooKeeper service resides</em>:2181/hive/default?serviceDiscoveryMode=zooKeeper&amp;zooKeeperNamespace=hsbroker&amp;zooKeeperServerPrincipal=zookeeper/hadoop.hadoop.com</p>
<p id="mrs_01_2337__en-us_topic_0000001219029577_p7720163134014">Example: <strong id="mrs_01_2337__en-us_topic_0000001219029577_b68341291875">jdbc:presto://192.168.8.37:</strong>2181<strong id="mrs_01_2337__en-us_topic_0000001219029577_b1983815291171">,192.168.8.38:</strong>2181<strong id="mrs_01_2337__en-us_topic_0000001219029577_b1484214294714">,192.168.8.39:</strong>2181<strong id="mrs_01_2337__en-us_topic_0000001219029577_b148461429471">/hive/default?serviceDiscoveryMode=zooKeeper&amp;zooKeeperNamespace=hsbroker&amp;zooKeeperServerPrincipal=zookeeper/hadoop.hadoop.com</strong></p>
</p></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1091517563305"><span>Click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b6924145711116">Add File</strong> and select the obtained JDBC file obtained in <a href="#mrs_01_2337__en-us_topic_0000001219029577_li1727232161619">1.d</a>.</span></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li917821283210"><span>Click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b11518123814121">Connection properties</strong>. On the <strong id="mrs_01_2337__en-us_topic_0000001219029577_b0518113871212">Connection properties</strong> tab page, right-click and select <strong id="mrs_01_2337__en-us_topic_0000001219029577_b1951813820129">Add new property</strong>. Set parameters by referring to <a href="#mrs_01_2337__en-us_topic_0000001219029577_table1173517153344">Table 1</a>.</span><p>
<div class="tablenoborder"><a name="mrs_01_2337__en-us_topic_0000001219029577_table1173517153344"></a><a name="en-us_topic_0000001219029577_table1173517153344"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_2337__en-us_topic_0000001219029577_table1173517153344" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Property information</caption><thead align="left"><tr id="mrs_01_2337__en-us_topic_0000001219029577_row773516157342"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.3.12.2.1.2.3.1.1"><p id="mrs_01_2337__en-us_topic_0000001219029577_p18735121515344">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.3.12.2.1.2.3.1.2"><p id="mrs_01_2337__en-us_topic_0000001219029577_p127351115153417">Example Value</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_2337__en-us_topic_0000001219029577_row11735191523419"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p1673510152347">KerberosPrincipal</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p11735141512341">zhangsan</p>
<div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note9513124103619"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_2337__en-us_topic_0000001219029577_p16513204153616">Human-machine user created in the cluster. For details, see <a href="mrs_01_1714.html">Creating a HetuEngine User</a>.</p>
</div></div>
</td>
</tr>
<tr id="mrs_01_2337__en-us_topic_0000001219029577_row2073519151346"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p157351415113415">KerberosKeytabPath</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p4735191593418">D:\\user.keytab</p>
<div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note117251736133815"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_2337__en-us_topic_0000001219029577_p9981183716388">You need to configure this parameter when using the keytab mode for access.</p>
</div></div>
</td>
</tr>
<tr id="mrs_01_2337__en-us_topic_0000001219029577_row10735151533412"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p17736815143417">KerberosRemoteServiceName</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p2736161553417">HTTP</p>
</td>
</tr>
<tr id="mrs_01_2337__en-us_topic_0000001219029577_row1573641510348"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p17362156347">SSL</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p15736141593413">true</p>
</td>
</tr>
<tr id="mrs_01_2337__en-us_topic_0000001219029577_row673641516342"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p1473610155347">deploymentMode</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p473671513341">on_yarn</p>
</td>
</tr>
<tr id="mrs_01_2337__en-us_topic_0000001219029577_row87361215113415"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p87361915133419">tenant</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p573612151341">default</p>
<div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note1047916535384"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_2337__en-us_topic_0000001219029577_p1747935310386">The tenant to which the user belongs needs to be configured in the cluster.</p>
</div></div>
</td>
</tr>
<tr id="mrs_01_2337__en-us_topic_0000001219029577_row1673614154347"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p14736171513344">user</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p147361715143415">zhangsan</p>
<div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note11601821153910"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_2337__en-us_topic_0000001219029577_p216032123920">Human-machine user created in the cluster. For details, see <a href="mrs_01_1714.html">Creating a HetuEngine User</a>.</p>
</div></div>
</td>
</tr>
<tr id="mrs_01_2337__en-us_topic_0000001219029577_row177365154346"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p6736111511345">password</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p1473661593410">zhangsan@##65331853</p>
<div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note103846476394"><span class="notetitle"> NOTE: </span><div class="notebody"><ul id="mrs_01_2337__en-us_topic_0000001219029577_ul16720039145213"><li id="mrs_01_2337__en-us_topic_0000001219029577_li0720143912528">Password set when a human-machine user is created in the cluster. For details, see <a href="mrs_01_1714.html">Creating a HetuEngine User</a>.</li><li id="mrs_01_2337__en-us_topic_0000001219029577_li572015393521">You need to configure this parameter when using username and password for access.</li></ul>
</div></div>
</td>
</tr>
<tr id="mrs_01_2337__en-us_topic_0000001219029577_row07361158347"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p16736161583415">KerberosConfigPath</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p117361615133418">D:\\krb5.conf</p>
</td>
</tr>
<tr id="mrs_01_2337__en-us_topic_0000001219029577_row187361315113417"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p147361815133410">SSLTrustStorePath</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.12.2.1.2.3.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p187366159343">D:\\hetuserver.jks</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_01_2337__en-us_topic_0000001219029577_p1618220306402"><a href="#mrs_01_2337__en-us_topic_0000001219029577_fig16912205184112">Figure 1</a> shows an example of the parameter settings.</p>
<div class="fignone" id="mrs_01_2337__en-us_topic_0000001219029577_fig16912205184112"><a name="mrs_01_2337__en-us_topic_0000001219029577_fig16912205184112"></a><a name="en-us_topic_0000001219029577_fig16912205184112"></a><span class="figcap"><b>Figure 1 </b>Example of parameter settings</span><br><span><img id="mrs_01_2337__image132721301327" src="en-us_image_0000001438431645.png"></span></div>
</p></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1327343112322"><span>Click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b268372931515">OK</strong>.</span></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li19606845134114"><span>Click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b4151631141516">Finish</strong>. The <span id="mrs_01_2337__en-us_topic_0000001219029577_text18249182204610">HetuEngine</span> is successfully connected.</span><p><div class="note" id="mrs_01_2337__en-us_topic_0000001219029577_note0369813184215"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2337__en-us_topic_0000001219029577_p113702137424">If a message is displayed indicating that you do not have the permission to view the table, configure the permission by referring to <a href="mrs_01_2352.html">Configuring Permissions for Tables, Columns, and Databases</a>.</p>
</div></div>
</p></li></ol>
<p id="mrs_01_2337__en-us_topic_0000001219029577_p1474513116418">Method 2: Using HSBroker to access <span id="mrs_01_2337__en-us_topic_0000001219029577_text7754016154316">HetuEngine</span></p>
<ol id="mrs_01_2337__en-us_topic_0000001219029577_ol1992215713516"><li id="mrs_01_2337__en-us_topic_0000001219029577_li29221671357"><a name="mrs_01_2337__en-us_topic_0000001219029577_li29221671357"></a><a name="en-us_topic_0000001219029577_li29221671357"></a><span>Obtain the JDBC JAR file by referring to <a href="#mrs_01_2337__en-us_topic_0000001219029577_li1747527125">1</a>.</span></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li8971335184513"><span>Open DBeaver, choose <strong id="mrs_01_2337__en-us_topic_0000001219029577_b828016108407">Database</strong> &gt; <strong id="mrs_01_2337__en-us_topic_0000001219029577_b183201126154011">New Database Connection</strong>, search for PrestoSQL, and open it.</span></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1800649114410"><span>Click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b104691094116">Edit Driver Settings</strong> and set parameters by referring to the following table.</span><p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_2337__en-us_topic_0000001219029577_table19866124719496" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Driver settings</caption><thead align="left"><tr id="mrs_01_2337__en-us_topic_0000001219029577_row11867174710495"><th align="left" class="cellrowborder" valign="top" width="21.59%" id="mcps1.3.3.5.3.2.1.2.4.1.1"><p id="mrs_01_2337__en-us_topic_0000001219029577_p8867247184916">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="37.519999999999996%" id="mcps1.3.3.5.3.2.1.2.4.1.2"><p id="mrs_01_2337__en-us_topic_0000001219029577_p11867194734910">Value</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40.89%" id="mcps1.3.3.5.3.2.1.2.4.1.3"><p id="mrs_01_2337__en-us_topic_0000001219029577_p9821165817546">Remarks</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_2337__en-us_topic_0000001219029577_row78671047184910"><td class="cellrowborder" valign="top" width="21.59%" headers="mcps1.3.3.5.3.2.1.2.4.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p186714764911">Class Name</p>
</td>
<td class="cellrowborder" valign="top" width="37.519999999999996%" headers="mcps1.3.3.5.3.2.1.2.4.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p786734794917">io.prestosql.jdbc.PrestoDriver</p>
</td>
<td class="cellrowborder" valign="top" width="40.89%" headers="mcps1.3.3.5.3.2.1.2.4.1.3 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p1082105816542">/</p>
</td>
</tr>
<tr id="mrs_01_2337__en-us_topic_0000001219029577_row4867104719496"><td class="cellrowborder" valign="top" width="21.59%" headers="mcps1.3.3.5.3.2.1.2.4.1.1 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p1986744716497">URL Template</p>
</td>
<td class="cellrowborder" valign="top" width="37.519999999999996%" headers="mcps1.3.3.5.3.2.1.2.4.1.2 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p1286718475496">URL of <span id="mrs_01_2337__en-us_topic_0000001219029577_text8347142519434">HetuEngine</span></p>
</td>
<td class="cellrowborder" valign="top" width="40.89%" headers="mcps1.3.3.5.3.2.1.2.4.1.3 "><p id="mrs_01_2337__en-us_topic_0000001219029577_p289441614557">URL format:</p>
<p id="mrs_01_2337__en-us_topic_0000001219029577_p7894101615515">jdbc:presto://&lt;<em id="mrs_01_2337__en-us_topic_0000001219029577_i1397152665611">HSBrokerIP1:port1</em>&gt;,&lt;<em id="mrs_01_2337__en-us_topic_0000001219029577_i10401932195612">HSBrokerIP2:port2</em>&gt;,&lt;<em id="mrs_01_2337__en-us_topic_0000001219029577_i632223605617">HSBrokerIP3:port3</em>&gt;/hive/default?serviceDiscoveryMode=hsbroker</p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1883675134512"><span>Click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b1060014462437">Add File</strong> and upload the JDBC driver package obtained in <a href="#mrs_01_2337__en-us_topic_0000001219029577_li29221671357">1</a>.</span></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1912519580579"><span>Click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b158716684414">Find Class</strong>. The driver class is automatically obtained. Click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b18497102374417">OK</strong> to complete the driver setting, as shown in <a href="#mrs_01_2337__en-us_topic_0000001219029577_fig7280201602711">Figure 2</a>.</span><p><div class="fignone" id="mrs_01_2337__en-us_topic_0000001219029577_fig7280201602711"><a name="mrs_01_2337__en-us_topic_0000001219029577_fig7280201602711"></a><a name="en-us_topic_0000001219029577_fig7280201602711"></a><span class="figcap"><b>Figure 2 </b>Driver settings</span><br><span><img id="mrs_01_2337__image33391576583" src="en-us_image_0000001441091233.png"></span></div>
</p></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li1628081618271"><span>On the <strong id="mrs_01_2337__en-us_topic_0000001219029577_b7836512195010">Main</strong> tab page for creating a connection, enter the user name and password, and click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b458962212486">Test Connection</strong>. After the connection is successful, click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b57971931184813">OK</strong>, and then click <strong id="mrs_01_2337__en-us_topic_0000001219029577_b136663363488">Finish</strong>.</span><p><div class="fignone" id="mrs_01_2337__en-us_topic_0000001219029577_fig10911154013302"><span class="figcap"><b>Figure 3 </b>Creating a connection</span><br><span><img id="mrs_01_2337__en-us_topic_0000001219029577_image1491184014304" src="en-us_image_0000001349259429.png"></span></div>
</p></li><li id="mrs_01_2337__en-us_topic_0000001219029577_li19156542112817"><span>After the connection is successful, the page shown in <a href="#mrs_01_2337__en-us_topic_0000001219029577_fig18372036443">Figure 4</a> is displayed.</span><p><div class="fignone" id="mrs_01_2337__en-us_topic_0000001219029577_fig18372036443"><a name="mrs_01_2337__en-us_topic_0000001219029577_fig18372036443"></a><a name="en-us_topic_0000001219029577_fig18372036443"></a><span class="figcap"><b>Figure 4 </b>Successful connection</span><br><span><img id="mrs_01_2337__image1348541515479" src="en-us_image_0000001441208981.png"></span></div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_2336.html">Using a Third-Party Visualization Tool to Access HetuEngine</a></div>
</div>
</div>