Files
doc-exports/docs/css/umn/css_01_0381.html
zhengxiu 2125539080 css umn 25.1.0 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: zhengxiu <zhengxiu@huawei.com>
Co-committed-by: zhengxiu <zhengxiu@huawei.com>
2025-07-04 09:10:17 +00:00

158 lines
17 KiB
HTML

<a name="css_01_0381"></a><a name="css_01_0381"></a>
<h1 class="topictitle1">Elasticsearch Cluster Access Methods</h1>
<div id="body0000001975823337"><p id="css_01_0381__en-us_topic_0000001961259049_p5636738181213">There are many ways to connect to an Elasticsearch cluster. Select the most appropriate access method based on the programming language you prefer. The various access methods support different types of network configurations. The cluster access addresses vary depending on the network configuration you choose. Select an appropriate network configuration method based on your network environment.</p>
<div class="section" id="css_01_0381__section11796104123519"><h4 class="sectiontitle">Access Methods</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_01_0381__en-us_topic_0000001961259049_table114913297713" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Cluster access methods</caption><thead align="left"><tr id="css_01_0381__en-us_topic_0000001961259049_row914911291275"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.2.4.1.1"><p id="css_01_0381__en-us_topic_0000001961259049_p10149152919711">Access Method</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.2.2.2.4.1.2"><p id="css_01_0381__en-us_topic_0000001961259049_p41497296713">Scenario</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.2.2.2.4.1.3"><p id="css_01_0381__en-us_topic_0000001961259049_p181496292716">Details</p>
</th>
</tr>
</thead>
<tbody><tr id="css_01_0381__en-us_topic_0000001961259049_row214982915714"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.4.1.1 "><p id="css_01_0381__en-us_topic_0000001961259049_p10149329877">Kibana (recommended)</p>
</td>
<td class="cellrowborder" rowspan="2" valign="top" width="45%" headers="mcps1.3.2.2.2.4.1.2 "><ul id="css_01_0381__ul137611993411"><li id="css_01_0381__li10768943419">A graphical user interface</li><li id="css_01_0381__li1976109153411">Instance monitoring</li><li id="css_01_0381__li3768923417">Data management</li></ul>
<p id="css_01_0381__p816317353418">Language-irrelevant</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.2.4.1.3 "><p id="css_01_0381__p55472300189"><a href="css_01_0382.html">Logging In to an Elasticsearch Cluster Using Kibana</a></p>
</td>
</tr>
<tr id="css_01_0381__en-us_topic_0000001961259049_row123514502113"><td class="cellrowborder" valign="top" headers="mcps1.3.2.2.2.4.1.1 "><p id="css_01_0381__en-us_topic_0000001961259049_p1835135010115">Cerebro</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.2.2.2.4.1.2 "><p id="css_01_0381__p638218320185"><a href="css_01_0383.html">Logging In to an Elasticsearch Cluster Through Cerebro</a></p>
</td>
</tr>
<tr id="css_01_0381__en-us_topic_0000001961259049_row814919291979"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.4.1.1 "><p id="css_01_0381__en-us_topic_0000001961259049_p1314918291713">Open-source Elasticsearch API</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.2.4.1.2 "><p id="css_01_0381__p6586103219425">Run Curl commands to access and manage Elasticsearch clusters.</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.2.4.1.3 "><p id="css_01_0381__p1211319351183"><a href="css_01_0384.html">Accessing an Elasticsearch Cluster Using cURL Commands</a></p>
</td>
</tr>
<tr id="css_01_0381__en-us_topic_0000001961259049_row61491729276"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.4.1.1 "><p id="css_01_0381__p66591711182916">Java</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.2.4.1.2 "><p id="css_01_0381__p14148367183">Use Java to access and manage Elasticsearch clusters.</p>
<p id="css_01_0381__en-us_topic_0000001961259049_li1143016242381p0">To avoid compatibility issues, use the Java client that matches your Elasticsearch cluster version.</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.2.4.1.3 "><p id="css_01_0381__p18414183691820"><a href="css_01_0386.html">Accessing an Elasticsearch Cluster Through the Rest High Level Client</a></p>
<p id="css_01_0381__p1060424615465"><a href="css_01_0387.html">Accessing an Elasticsearch Cluster Through the Rest Low Level Client</a></p>
<p id="css_01_0381__p0305048174618"><a href="css_01_0388.html">Accessing an Elasticsearch Cluster Through the Transport Client</a></p>
<p id="css_01_0381__p154661148104613"><a href="css_01_0389.html">Accessing an Elasticsearch Cluster Using Spring Boot</a></p>
<p id="css_01_0381__p164510485469"></p>
</td>
</tr>
<tr id="css_01_0381__en-us_topic_0000001961259049_row915012295717"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.4.1.1 "><p id="css_01_0381__en-us_topic_0000001961259049_p1215002919711">Python</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.2.4.1.2 "><p id="css_01_0381__p77862064411">Use Python to access and manage Elasticsearch clusters.</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.2.4.1.3 "><p id="css_01_0381__p972425012183"><a href="css_01_0390.html">Accessing an Elasticsearch Cluster Using Python</a></p>
</td>
</tr>
<tr id="css_01_0381__en-us_topic_0000001961259049_row151501529277"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.4.1.1 "><p id="css_01_0381__p154366192214">MRS Hive</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.2.4.1.2 "><p id="css_01_0381__p1283911455445">Use the Elasticsearch-Hadoop (ES-Hadoop) connector of MRS to access and manage Elasticsearch clusters using Hive.</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.2.4.1.3 "><p id="css_01_0381__p1367185216188"><a href="css_01_0391.html">Accessing an Elasticsearch Cluster Through the MRS Hive Client</a></p>
</td>
</tr>
<tr id="css_01_0381__row17436151172213"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.4.1.1 "><p id="css_01_0381__en-us_topic_0000001961259049_p1115018292715">Go</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.2.4.1.2 "><p id="css_01_0381__p5990121715443">Use Go to access and manage Elasticsearch clusters.</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.2.4.1.3 "><p id="css_01_0381__p1043612114221"><a href="css_01_0392.html">Accessing an Elasticsearch Cluster Using Go</a></p>
</td>
</tr>
<tr id="css_01_0381__row143501625131415"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.2.4.1.1 "><p id="css_01_0381__p1035012257149">LDAP Authentication</p>
</td>
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.2.4.1.2 "><p id="css_01_0381__p8350162531410">Enable Lightweight Directory Access Protocol (LDAP) authentication for an Elasticsearch cluster.</p>
</td>
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.2.2.2.4.1.3 "><p id="css_01_0381__p23501825111419"><a href="css_01_0393.html">Accessing an Elasticsearch Cluster Using LDAP</a></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="css_01_0381__section855085010198"><a name="css_01_0381__section855085010198"></a><a name="section855085010198"></a><h4 class="sectiontitle">Network Configuration</h4><p id="css_01_0381__p1217520132115">Configure the network of the Elasticsearch cluster, and ensure that you have a server that can connect to the cluster's network. Obtain the cluster access address. With the exception of Kibana and Cerebro, which support one-click cluster access so there is no need to provide the cluster address, the cluster address needs to be provided for all other access methods.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_01_0381__table1347204518562" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Network configuration for the cluster</caption><thead align="left"><tr id="css_01_0381__row647745155612"><th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.3.3.2.5.1.1"><p id="css_01_0381__p1447194595616">Network Environment</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="css_01_0381__p04744535611">Access Method</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.3.2.5.1.3"><p id="css_01_0381__p947154512569">Scenario</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.4"><p id="css_01_0381__p18605558125611">Details</p>
</th>
</tr>
</thead>
<tbody><tr id="css_01_0381__row10471545175611"><td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_01_0381__p1868247961">Private network</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_01_0381__p547174525617">Private IP address</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_01_0381__p65041751486">Obtain the IP address of each node from the cluster information page, and access the cluster by connecting to one of these IP addresses directly.</p>
<p id="css_01_0381__p2704840164314">How to obtain:</p>
<ol id="css_01_0381__ol15355114704317"><li id="css_01_0381__css_01_0384_en-us_topic_0000001961178833_li07251912434">In the navigation pane on the left, choose <span class="wintitle" id="css_01_0381__css_01_0384_wintitle8395155017380"><b>Clusters</b></span>.</li><li id="css_01_0381__css_01_0384_en-us_topic_0000001961178833_li392216231538">In the cluster list, obtain the IP address of the cluster you want to access from the <strong id="css_01_0381__css_01_0384_b1213816218488">Private Network Address</strong> column. Generally, the IP address format is <em id="css_01_0381__css_01_0384_i913822112488">&lt;host&gt;</em><strong id="css_01_0381__css_01_0384_b11381215483">:</strong><em id="css_01_0381__css_01_0384_i131381621114811">&lt;port&gt;</em> or <em id="css_01_0381__css_01_0384_i9139122154816">&lt;host&gt;</em><strong id="css_01_0381__css_01_0384_b3139821144816">:</strong><em id="css_01_0381__css_01_0384_i71391521194817">&lt;port&gt;</em><strong id="css_01_0381__css_01_0384_b1813942115484">,</strong><em id="css_01_0381__css_01_0384_i1713918215481">&lt;host&gt;</em><strong id="css_01_0381__css_01_0384_b101391921114810">:</strong><em id="css_01_0381__css_01_0384_i111392216488">&lt;port&gt;</em>.<p id="css_01_0381__css_01_0384_en-us_topic_0000001961178833_p18422185125018">If the cluster has only one node, the IP address and port number of this one node are displayed, for example, <strong id="css_01_0381__css_01_0384_b310751519481">10.62.179.32:9200</strong>. If the cluster has multiple nodes, the IP addresses and port numbers of all nodes are displayed, for example, <strong id="css_01_0381__css_01_0384_b1610791594811">10.62.179.32:9200,10.62.179.33:9200</strong>.</p>
</li></ol>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_01_0381__p8605658155615">This is the default method.</p>
</td>
</tr>
<tr id="css_01_0381__row19471745185619"><td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_01_0381__p2120153044718">Private network</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_01_0381__p18471245125619">IP address or private domain name of the VPC endpoint</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_01_0381__p1137982710178">Configure a VPC endpoint to access the cluster from a different VPC over an internal network. Do not use this method if high performance standards are used.</p>
<p id="css_01_0381__p195147543433">How to obtain:</p>
<ol id="css_01_0381__ol89568434411"><li id="css_01_0381__li1895615416443">In the navigation pane on the left, choose <span class="wintitle" id="css_01_0381__wintitle149572434418"><b>Clusters</b></span>.</li><li id="css_01_0381__li99579404419">On the <span class="wintitle" id="css_01_0381__wintitle1926014597469"><b>Clusters</b></span> page, click the name of the cluster you want to access. The <strong id="css_01_0381__b92601859184617">Cluster Information</strong> page is displayed.</li><li id="css_01_0381__li1495718434414">In the navigation pane, choose VPC Endpoint Service. Record the service address or private domain name of the VPC endpoint.</li></ol>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_01_0381__p7605115812562"><a href="css_01_0412.html">Configuring VPC Endpoint Service for an Elasticsearch Cluster</a></p>
</td>
</tr>
<tr id="css_01_0381__row5471345195614"><td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_01_0381__p2012073014715">Private network</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_01_0381__p1147104514565">Private IP address of a dedicated load balancer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_01_0381__p747134565619">Access the cluster through a dedicated load balancer. Use this method if high performance standards are used.</p>
<p id="css_01_0381__p534217917444">How to obtain:</p>
<ol id="css_01_0381__ol10184921174419"><li id="css_01_0381__li131841021174410">In the navigation pane on the left, choose <span class="wintitle" id="css_01_0381__wintitle121841621164416"><b>Clusters</b></span>.</li><li id="css_01_0381__li3184142119448">On the <span class="wintitle" id="css_01_0381__wintitle1717134919499"><b>Clusters</b></span> page, click the name of the cluster you want to access. The <strong id="css_01_0381__b71754914914">Cluster Information</strong> page is displayed.</li><li id="css_01_0381__li518410215446">In the navigation pane, choose <strong id="css_01_0381__b119565719493">Load Balancing</strong>. Record the private IP address of the load balancer.</li></ol>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_01_0381__p126051358135617"><a href="css_01_0413.html">Configuring a Dedicated Load Balancer for an Elasticsearch Cluster</a></p>
</td>
</tr>
<tr id="css_01_0381__row24711456565"><td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_01_0381__p182194919615">Public network</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_01_0381__p16473456560">Public IP address</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_01_0381__p146711816142219">Configure a whitelist to control public network access to the cluster. Use this method only for security-mode clusters that use HTTPS.</p>
<p id="css_01_0381__p6592202544416">How to obtain:</p>
<ol id="css_01_0381__ol1772853410441"><li id="css_01_0381__li17291534194416">In the navigation pane on the left, choose <span class="wintitle" id="css_01_0381__wintitle9729143454416"><b>Clusters</b></span>.</li><li id="css_01_0381__li19729163494417">On the <span class="wintitle" id="css_01_0381__wintitle94911113527"><b>Clusters</b></span> page, click the name of the cluster you want to access. The <strong id="css_01_0381__b14491216523">Cluster Information</strong> page is displayed. Record the cluster's public network address.</li></ol>
<div class="note" id="css_01_0381__note10248468294"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="css_01_0381__p22483682916">Use this method only for security-mode clusters that use HTTPS.</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_01_0381__p46051058145613"><a href="css_01_0076.html">Configuring Public Network Access for an Elasticsearch Cluster</a></p>
</td>
</tr>
<tr id="css_01_0381__row1247184520564"><td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.3.3.2.5.1.1 "><p id="css_01_0381__p1199104010475">Public network</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="css_01_0381__p2528814359">Public IP address of a dedicated load balancer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.3 "><p id="css_01_0381__p351519142246">Access the cluster through a dedicated load balancer. Use this method if high performance standards are used.</p>
<ol id="css_01_0381__ol164661948114413"><li id="css_01_0381__li104672485446">In the navigation pane on the CSS console, choose <span class="wintitle" id="css_01_0381__wintitle1497135320460"><b>Clusters</b></span>.</li><li id="css_01_0381__li114674489444">On the <span class="wintitle" id="css_01_0381__wintitle14255104124710"><b>Clusters</b></span> page, click the name of the cluster you want to access. The <strong id="css_01_0381__b172551454712">Cluster Information</strong> page is displayed.</li><li id="css_01_0381__li184675485440">In the navigation pane, choose <strong id="css_01_0381__b1895923284914">Load Balancing</strong>. Record the public IP address of the load balancer.</li></ol>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.4 "><p id="css_01_0381__p19605155835614"><a href="css_01_0413.html">Configuring a Dedicated Load Balancer for an Elasticsearch Cluster</a></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_01_0210.html">Accessing Elasticsearch Clusters</a></div>
</div>
</div>