Yang, Tong 48706b7552 MRS COMP-LTS 320-lts.1 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-04-12 12:51:10 +00:00

24 lines
5.5 KiB
HTML

<a name="mrs_01_24010"></a><a name="mrs_01_24010"></a>
<h1 class="topictitle1">Using Tableau to Access HetuEngine</h1>
<div id="body8662426"><div class="section" id="mrs_01_24010__en-us_topic_0000001173789310_section1973493093211"><h4 class="sectiontitle">Prerequisites</h4><ul id="mrs_01_24010__en-us_topic_0000001173789310_ul5153854444"><li id="mrs_01_24010__en-us_topic_0000001173789310_li9153205411418">Tableau has been installed.</li><li id="mrs_01_24010__en-us_topic_0000001173789310_li1473325512418">The JDBC JAR file has been obtained. For details, see <a href="mrs_01_2337.html#mrs_01_2337__li599475416716">1</a>.</li><li id="mrs_01_24010__en-us_topic_0000001173789310_li15242114816319">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_24010__en-us_topic_0000001173789310_section8471843359"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_24010__en-us_topic_0000001173789310_ol9554192533518"><li id="mrs_01_24010__en-us_topic_0000001173789310_li15555172583515"><span>Place the obtained JAR file to the Tableau installation directory, for example, <strong id="mrs_01_24010__en-us_topic_0000001173789310_b18644153713391">C:\Program Files\Tableau\Drivers</strong>.</span></li><li id="mrs_01_24010__en-us_topic_0000001173789310_li6197135010379"><a name="mrs_01_24010__en-us_topic_0000001173789310_li6197135010379"></a><a name="en-us_topic_0000001173789310_li6197135010379"></a><span>Open Tableau, select <strong id="mrs_01_24010__en-us_topic_0000001173789310_b39910282454">Other databases (JDBC)</strong>, enter the URL and the username and password of the created human-machine user, and click <strong id="mrs_01_24010__en-us_topic_0000001173789310_b126121058194510">Sign In</strong>.</span><p><p id="mrs_01_24010__en-us_topic_0000001173789310_p1979305711408"><span><img id="mrs_01_24010__en-us_topic_0000001173789310_image147931457204015" src="en-us_image_0000001348740145.png"></span></p>
<p id="mrs_01_24010__en-us_topic_0000001173789310_p1841221819388">URL format:</p>
<p id="mrs_01_24010__en-us_topic_0000001173789310_p1841231817385">jdbc:presto://&lt;<em id="mrs_01_24010__en-us_topic_0000001173789310_i1951173812413">HSBrokerIP1:port1</em>&gt;,&lt;<em id="mrs_01_24010__en-us_topic_0000001173789310_i12469154614117">HSBrokerIP2:port2</em>&gt;,&lt;<em id="mrs_01_24010__en-us_topic_0000001173789310_i56511050164115">HSBrokerIP3:port3</em>&gt;/hive/default?serviceDiscoveryMode=hsbroker</p>
<p id="mrs_01_24010__en-us_topic_0000001173789310_p1793958184918">Example:</p>
<p id="mrs_01_24010__en-us_topic_0000001173789310_p14931958194918">jdbc:presto://192.168.8.37:29860,192.168.8.38:29860,192.168.8.39:29860/hive/default?serviceDiscoveryMode=hsbroker</p>
<div class="p" id="mrs_01_24010__en-us_topic_0000001173789310_p853373612274">Obtain the HSBroker node and port number:<ol type="a" id="mrs_01_24010__en-us_topic_0000001173789310_ol15412191816385"><li id="mrs_01_24010__en-us_topic_0000001173789310_li241211803819">Log in to FusionInsight Manager.</li><li id="mrs_01_24010__en-us_topic_0000001173789310_li441241853819">Choose <strong id="mrs_01_24010__en-us_topic_0000001173789310_b739115308445">Cluster</strong> &gt; <strong id="mrs_01_24010__en-us_topic_0000001173789310_b19559938114417">Services</strong> &gt; <strong id="mrs_01_24010__en-us_topic_0000001173789310_b17840605459"><span id="mrs_01_24010__en-us_topic_0000001173789310_text189515234414">HetuEngine</span></strong> &gt; <strong id="mrs_01_24010__en-us_topic_0000001173789310_b5942830174615">Role</strong> &gt; <strong id="mrs_01_24010__en-us_topic_0000001173789310_b152481534194614">HSBroker</strong> to obtain the service IP addresses of all HSBroker instances.</li><li id="mrs_01_24010__en-us_topic_0000001173789310_li8575154319499">Choose <strong id="mrs_01_24010__en-us_topic_0000001173789310_b0657443184720">Cluster</strong> &gt; <strong id="mrs_01_24010__en-us_topic_0000001173789310_b1657114344716">Services</strong> &gt; <strong id="mrs_01_24010__en-us_topic_0000001173789310_b5657204313477"><span id="mrs_01_24010__en-us_topic_0000001173789310_text7658143184711">HetuEngine</span></strong> &gt; <strong id="mrs_01_24010__en-us_topic_0000001173789310_b81921571484">Configurations</strong> &gt; <strong id="mrs_01_24010__en-us_topic_0000001173789310_b854101619484">All Configurations</strong> and search for <strong id="mrs_01_24010__en-us_topic_0000001173789310_b148151538144813">server.port</strong> on the right to obtain the port number of HSBroker.<div class="note" id="mrs_01_24010__en-us_topic_0000001173789310_note918032664917"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_24010__en-us_topic_0000001173789310_ul160163410377"><li id="mrs_01_24010__en-us_topic_0000001173789310_li1860173416375">You can select one or more normal brokers for the HSBroker node and port number.</li><li id="mrs_01_24010__en-us_topic_0000001173789310_li116073423711">If the connection fails, disable the proxy and try again.</li></ul>
</div></div>
</li></ol>
</div>
</p></li><li id="mrs_01_24010__en-us_topic_0000001173789310_li681723717438"><span>After the login is successful, drag the data table to be operated to the operation window on the right and refresh data.</span></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>