geminidb_umn_20241119

Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
This commit is contained in:
Ru, Li Yi 2024-11-22 09:50:03 +00:00 committed by zuul
parent ccc163eb84
commit 81eeda8dd3
3 changed files with 14 additions and 26 deletions

View File

@ -4,7 +4,7 @@
<div id="body1566526239327"><div class="note" id="nosql_01_0006__note1167815161239"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="nosql_01_0006__p9171127163018">The DB instance specifications depend on the selected DB engine.</p> <div id="body1566526239327"><div class="note" id="nosql_01_0006__note1167815161239"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="nosql_01_0006__p9171127163018">The DB instance specifications depend on the selected DB engine.</p>
</div></div> </div></div>
<div class="section" id="nosql_01_0006__section17517174716137"><h4 class="sectiontitle">GeminiDB Cassandra Instance Specifications</h4> <div class="section" id="nosql_01_0006__section17517174716137"><h4 class="sectiontitle">GeminiDB Cassandra Instance Specifications</h4>
<div class="tablenoborder"><a name="nosql_01_0006__table33151750124715"></a><a name="table33151750124715"></a><table cellpadding="4" cellspacing="0" summary="" id="nosql_01_0006__table33151750124715" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GeminiDB Cassandra cluster instance specifications</caption><thead align="left"><tr id="nosql_01_0006__row8316115011475"><th align="left" class="cellrowborder" valign="top" width="32%" id="mcps1.3.2.2.2.5.1.1"><p id="nosql_01_0006__p16316550194718">Flavor</p> <div class="tablenoborder"><a name="nosql_01_0006__table33151750124715"></a><a name="table33151750124715"></a><table cellpadding="4" cellspacing="0" summary="" id="nosql_01_0006__table33151750124715" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GeminiDB Cassandra cluster instance specifications</caption><thead align="left"><tr id="nosql_01_0006__row8316115011475"><th align="left" class="cellrowborder" valign="top" width="32%" id="mcps1.3.2.2.2.5.1.1"><p id="nosql_01_0006__p16316550194718">Specification</p>
</th> </th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.2.5.1.2"><p id="nosql_01_0006__p1331625034716">vCPUs</p> <th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.2.5.1.2"><p id="nosql_01_0006__p1331625034716">vCPUs</p>
</th> </th>
@ -20,7 +20,7 @@
</td> </td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.2.5.1.3 "><p id="nosql_01_0006__p6317115015475">32</p> <td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.2.5.1.3 "><p id="nosql_01_0006__p6317115015475">32</p>
</td> </td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.2.2.2.5.1.4 "><p id="nosql_01_0006__p931735064711">24,000</p> <td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.2.2.2.5.1.4 "><p id="nosql_01_0006__p931735064711">96,000</p>
</td> </td>
</tr> </tr>
<tr id="nosql_01_0006__row143171350204713"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.2.2.2.5.1.1 "><p id="nosql_01_0006__p1331765004718">geminidb.cassandra.2xlarge.8</p> <tr id="nosql_01_0006__row143171350204713"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.2.2.2.5.1.1 "><p id="nosql_01_0006__p1331765004718">geminidb.cassandra.2xlarge.8</p>
@ -29,7 +29,7 @@
</td> </td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.2.5.1.3 "><p id="nosql_01_0006__p153171650194710">64</p> <td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.2.5.1.3 "><p id="nosql_01_0006__p153171650194710">64</p>
</td> </td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.2.2.2.5.1.4 "><p id="nosql_01_0006__p143171950174716">48,000</p> <td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.2.2.2.5.1.4 "><p id="nosql_01_0006__p143171950174716">96,000</p>
</td> </td>
</tr> </tr>
<tr id="nosql_01_0006__row831875014716"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.2.2.2.5.1.1 "><p id="nosql_01_0006__p19318165074718">geminidb.cassandra.4xlarge.8</p> <tr id="nosql_01_0006__row831875014716"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.2.2.2.5.1.1 "><p id="nosql_01_0006__p19318165074718">geminidb.cassandra.4xlarge.8</p>
@ -41,15 +41,6 @@
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.2.2.2.5.1.4 "><p id="nosql_01_0006__p2318195016476">96,000</p> <td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.2.2.2.5.1.4 "><p id="nosql_01_0006__p2318195016476">96,000</p>
</td> </td>
</tr> </tr>
<tr id="nosql_01_0006__row5318950114714"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.2.2.2.5.1.1 "><p id="nosql_01_0006__p1331810508475">geminidb.cassandra.6xlarge.8</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.5.1.2 "><p id="nosql_01_0006__p113190507479">24</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.2.5.1.3 "><p id="nosql_01_0006__p2319185017471">192</p>
</td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.2.2.2.5.1.4 "><p id="nosql_01_0006__p131985019474">144,000</p>
</td>
</tr>
<tr id="nosql_01_0006__row1319165020477"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.2.2.2.5.1.1 "><p id="nosql_01_0006__p8319125020479">geminidb.cassandra.8xlarge.8</p> <tr id="nosql_01_0006__row1319165020477"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.2.2.2.5.1.1 "><p id="nosql_01_0006__p8319125020479">geminidb.cassandra.8xlarge.8</p>
</td> </td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.5.1.2 "><p id="nosql_01_0006__p16319145094715">32</p> <td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.5.1.2 "><p id="nosql_01_0006__p16319145094715">32</p>
@ -59,15 +50,6 @@
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.2.2.2.5.1.4 "><p id="nosql_01_0006__p8319350144713">192,000</p> <td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.2.2.2.5.1.4 "><p id="nosql_01_0006__p8319350144713">192,000</p>
</td> </td>
</tr> </tr>
<tr id="nosql_01_0006__row732018503478"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.2.2.2.5.1.1 "><p id="nosql_01_0006__p332035044712">geminidb.cassandra.12xlarge.8</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.5.1.2 "><p id="nosql_01_0006__p19320175034712">48</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.2.2.2.5.1.3 "><p id="nosql_01_0006__p53202506477">384</p>
</td>
<td class="cellrowborder" valign="top" width="27%" headers="mcps1.3.2.2.2.5.1.4 "><p id="nosql_01_0006__p16320150124720">288,000</p>
</td>
</tr>
<tr id="nosql_01_0006__row1320250124719"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.2.2.2.5.1.1 "><p id="nosql_01_0006__p11320850174714">geminidb.cassandra.15xlarge.8</p> <tr id="nosql_01_0006__row1320250124719"><td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.2.2.2.5.1.1 "><p id="nosql_01_0006__p11320850174714">geminidb.cassandra.15xlarge.8</p>
</td> </td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.5.1.2 "><p id="nosql_01_0006__p432075074715">60</p> <td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.2.5.1.2 "><p id="nosql_01_0006__p432075074715">60</p>

View File

@ -3,14 +3,17 @@
<h1 class="topictitle1">Connecting to a <span id="text1938753116712">GeminiDB Cassandra</span> Instance Over Private Networks</h1> <h1 class="topictitle1">Connecting to a <span id="text1938753116712">GeminiDB Cassandra</span> Instance Over Private Networks</h1>
<div id="body1568078909894"><div class="section" id="nosql_02_0005__section46429645141251"><h4 class="sectiontitle">Scenarios</h4><p id="nosql_02_0005__p1112805719352">This section uses the Linux operating system as an example to describe how to connect an <span id="nosql_02_0005__text1164264675114">ECS</span><span id="nosql_02_0005__text168815020519"></span> to a <span id="nosql_02_0005__text86721610121615">GeminiDB Cassandra</span> instance over private networks.</p> <div id="body1568078909894"><div class="section" id="nosql_02_0005__section46429645141251"><h4 class="sectiontitle">Scenarios</h4><p id="nosql_02_0005__p1112805719352">This section uses the Linux operating system as an example to describe how to connect an <span id="nosql_02_0005__text1164264675114">ECS</span><span id="nosql_02_0005__text168815020519"></span> to a <span id="nosql_02_0005__text86721610121615">GeminiDB Cassandra</span> instance over private networks.</p>
</div> </div>
<div class="section" id="nosql_02_0005__section135810251275"><h4 class="sectiontitle">Constraints</h4><ul id="nosql_02_0005__ul53814073144559"><li id="nosql_02_0005__li109347144559">The DB instances must be in the same VPC subnet as the <span id="nosql_02_0005__text2085319140529">ECS</span><span id="nosql_02_0005__text14958111717525"></span>.</li><li id="nosql_02_0005__li09011230251">The <span id="nosql_02_0005__text7888182617523">ECS</span><span id="nosql_02_0005__text6640929105219"></span> must be allowed in a security group that has access to the DB instances.<ul id="nosql_02_0005__ul53121930773"><li id="nosql_02_0005__li92211747371">If the security group that the target DB instance belongs to is the default security group, you do not need to configure security group rules.</li><li id="nosql_02_0005__li14221947274">If the security group that the target DB instance belongs to is not the default security group, check whether the security group rules allow the <span id="nosql_02_0005__text04782401524">ECS</span><span id="nosql_02_0005__text182091844135212"></span> to connect to the DB instance. For details, see section <a href="nosql_02_0004.html">Configuring Security Group Rules</a>.<p id="nosql_02_0005__p1798910425117">If the security group rules allow the access from the <span id="nosql_02_0005__text13715175975217">ECS</span><span id="nosql_02_0005__text971732105318"></span>, the ECS can connect to the DB instance.</p> <div class="section" id="nosql_02_0005__section135810251275"><h4 class="sectiontitle">Constraints</h4><ul id="nosql_02_0005__ul53814073144559"><li id="nosql_02_0005__li109347144559">The DB instances must be in the same VPC subnet as the <span id="nosql_02_0005__text2085319140529">ECS</span><span id="nosql_02_0005__text14958111717525"></span>.</li><li id="nosql_02_0005__li09011230251">The <span id="nosql_02_0005__text7888182617523">ECS</span><span id="nosql_02_0005__text6640929105219"></span> must be allowed in a security group that has access to the DB instances.<ul id="nosql_02_0005__ul53121930773"><li id="nosql_02_0005__li92211747371">If the target DB instance belongs to the default security group, you do not need to configure security group rules.</li><li id="nosql_02_0005__li14221947274">If the security group that the target DB instance belongs to is not the default security group, check whether the security group rules allow the <span id="nosql_02_0005__text04782401524">ECS</span><span id="nosql_02_0005__text182091844135212"></span> to connect to the DB instance. For details, see section <a href="nosql_02_0004.html">Configuring Security Group Rules</a>.<p id="nosql_02_0005__p1798910425117">If the security group rules allow the access from the <span id="nosql_02_0005__text13715175975217">ECS</span><span id="nosql_02_0005__text971732105318"></span>, the ECS can connect to the DB instance.</p>
<p id="nosql_02_0005__p129891442191111">If the security group rule does not allow the access from the <span id="nosql_02_0005__text934501735318">ECS</span><span id="nosql_02_0005__text634681713530"></span>, you need to add an inbound rule to the security group.</p> <p id="nosql_02_0005__p129891442191111">If the security group rule does not allow the access from the <span id="nosql_02_0005__text934501735318">ECS</span><span id="nosql_02_0005__text634681713530"></span>, you need to add an inbound rule to the security group.</p>
</li></ul> </li></ul>
</li><li id="nosql_02_0005__li7354102612436">The default port of the <span id="nosql_02_0005__text46739248164">GeminiDB Cassandra</span> instance is 8635.</li></ul> </li><li id="nosql_02_0005__li7354102612436">The default port of the <span id="nosql_02_0005__text46739248164">GeminiDB Cassandra</span> instance is 8635.</li></ul>
</div> </div>
<div class="section" id="nosql_02_0005__section45253223112"><h4 class="sectiontitle">Prerequisites</h4><ul id="nosql_02_0005__ul3360182717119"><li id="nosql_02_0005__li203601427316">Create an <span id="nosql_02_0005__text892012516537">ECS</span><span id="nosql_02_0005__text159212051115319"></span> running Linux. For details, see "Creating ECSs" in <em id="nosql_02_0005__i1911412210188"><span id="nosql_02_0005__text3805010175417">ECS</span><span id="nosql_02_0005__text68051108547"></span> User Guide</em>.</li><li id="nosql_02_0005__li65523118612">Obtain the Cassandra client installation package from the Cassandra official website.</li><li id="nosql_02_0005__li81904414417">Before using this tool, install the Python dependency package <a href="https://pypi.org/project/cassandra-driver/" target="_blank" rel="noopener noreferrer">cassandra-driver</a> 3.11.0 or later.</li></ul> <div class="section" id="nosql_02_0005__section45253223112"><h4 class="sectiontitle">Prerequisites</h4><ul id="nosql_02_0005__ul3360182717119"><li id="nosql_02_0005__li203601427316">Create an <span id="nosql_02_0005__text892012516537">ECS</span><span id="nosql_02_0005__text159212051115319"></span> running Linux. For details, see "Creating ECSs" in <em id="nosql_02_0005__i1911412210188"><span id="nosql_02_0005__text3805010175417">ECS</span><span id="nosql_02_0005__text68051108547"></span> User Guide</em>.</li><li id="nosql_02_0005__li65523118612">Obtain the <a href="https://archive.apache.org/dist/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz" target="_blank" rel="noopener noreferrer">Cassandra client installation package 3.11.3</a> from the official website.</li><li id="nosql_02_0005__li81904414417">If Python is not installed, download and install <a href="https://www.python.org/ftp/python/2.7.16/Python-2.7.16.tgz" target="_blank" rel="noopener noreferrer">Python 2.7</a> and <a href="https://pypi.org/project/cassandra-driver/" target="_blank" rel="noopener noreferrer">cassandra-driver</a> 3.11.0 or later.</li></ul>
</div> </div>
<div class="section" id="nosql_02_0005__section398995894218"><h4 class="sectiontitle">Using the Cassandra Client Tool to Connect to a DB Instance</h4><ol id="nosql_02_0005__o12386b3d9147482881ddfdfd9a3f787c"><li id="nosql_02_0005__li15904581714"><span>Log in to the <span id="nosql_02_0005__text834714311399">ECS</span><span id="nosql_02_0005__text136127447919"></span>. For details, see the section "Logging In to an <span id="nosql_02_0005__text16983116185514">ECS</span><span id="nosql_02_0005__text19709131915512"></span>" in the <em id="nosql_02_0005__i114541240152112">Elastic Cloud Server User Guide</em>.</span></li><li id="nosql_02_0005__li44786699134732"><span>Upload the Cassandra client installation package to <span id="nosql_02_0005__text108271128185510">ECS</span><span id="nosql_02_0005__text67193225516"></span>.</span></li><li id="nosql_02_0005__li19981956102810"><span>Obtain the client tool cqlsh.</span></li><li id="nosql_02_0005__lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to the <span class="keyword" id="nosql_02_0005__keyword16862161145215">DB instance</span> in the directory where the cqlsh tool is located.</span><p><p id="nosql_02_0005__p58615126331"><strong id="nosql_02_0005__b17344655163311">./cqlsh</strong> &lt;<em id="nosql_02_0005__i11661450153816">DB_HOST</em>&gt; &lt;<em id="nosql_02_0005__i19166195013811">DB_PORT</em>&gt; <strong id="nosql_02_0005__b5166135003817">-u</strong> &lt;<em id="nosql_02_0005__i316615063813">DB_USER</em>&gt;</p> <div class="section" id="nosql_02_0005__section398995894218"><h4 class="sectiontitle">Using the Cassandra Client Tool to Connect to a DB Instance</h4><ol id="nosql_02_0005__o12386b3d9147482881ddfdfd9a3f787c"><li id="nosql_02_0005__li15904581714"><span>Log in to the <span id="nosql_02_0005__text834714311399">ECS</span><span id="nosql_02_0005__text136127447919"></span>. For details, see the section "Logging In to an <span id="nosql_02_0005__text16983116185514">ECS</span><span id="nosql_02_0005__text19709131915512"></span>" in the <em id="nosql_02_0005__i114541240152112">Elastic Cloud Server User Guide</em>.</span></li><li id="nosql_02_0005__li44786699134732"><span>Upload the Cassandra client installation package 3.11.3 to the ECS. If Wget fails to be downloaded, download it to your local PC and then upload it to the ECS.</span><p><p id="nosql_02_0005__p5999419227">wget https://archive.apache.org/dist/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz</p>
<p id="nosql_02_0005__p1327863919596">tar -zxvf apache-cassandra-3.11.3-bin.tar.gz</p>
</p></li><li id="nosql_02_0005__li19981956102810"><span>Obtain the client tool cqlsh.</span><p><p id="nosql_02_0005__p5985255418">cd apache-cassandra-3.11.3/bin</p>
</p></li><li id="nosql_02_0005__lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to the <span class="keyword" id="nosql_02_0005__keyword16862161145215">DB instance</span> in the directory where the cqlsh tool is located.</span><p><p id="nosql_02_0005__p58615126331"><strong id="nosql_02_0005__b17344655163311">./cqlsh</strong> &lt;<em id="nosql_02_0005__i11661450153816">DB_HOST</em>&gt; &lt;<em id="nosql_02_0005__i19166195013811">DB_PORT</em>&gt; <strong id="nosql_02_0005__b5166135003817">-u</strong> &lt;<em id="nosql_02_0005__i316615063813">DB_USER</em>&gt;</p>
<p id="nosql_02_0005__p14852035134">Example:</p> <p id="nosql_02_0005__p14852035134">Example:</p>
<p id="nosql_02_0005__p1857117560114"><strong id="nosql_02_0005__b18173152910121">./cqlsh 192.168.1.8 8635 -u rwuser</strong></p> <p id="nosql_02_0005__p1857117560114"><strong id="nosql_02_0005__b18173152910121">./cqlsh 192.168.1.8 8635 -u rwuser</strong></p>
<div class="note" id="nosql_02_0005__note21381431122218"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="nosql_02_0005__ul18138931152220"><li id="nosql_02_0005__li8735051125619">&lt;<em id="nosql_02_0005__i1974124612912">DB_HOST</em>&gt; indicates the private IP address of the node to be connected. Obtain the value from the <span class="uicontrol" id="nosql_02_0005__uicontrol15255103614524"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="nosql_02_0005__uicontrol5256183616525"><b>Basic Information</b></span> page.</li><li id="nosql_02_0005__li9743125175616">&lt;<em id="nosql_02_0005__i163941855162910">DB_PORT</em>&gt; indicates the port number. The default value is 8635 and cannot be changed.</li><li id="nosql_02_0005__li10747135112566">&lt;<em id="nosql_02_0005__i14776204133013">DB_USER</em>&gt; indicates the database account name. The default value is <strong id="nosql_02_0005__b18120171635419">rwuser</strong>.</li></ul> <div class="note" id="nosql_02_0005__note21381431122218"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="nosql_02_0005__ul18138931152220"><li id="nosql_02_0005__li8735051125619">&lt;<em id="nosql_02_0005__i1974124612912">DB_HOST</em>&gt; indicates the private IP address of the node to be connected. Obtain the value from the <span class="uicontrol" id="nosql_02_0005__uicontrol15255103614524"><b>Private IP Address</b></span> column in the node list on the <span class="uicontrol" id="nosql_02_0005__uicontrol5256183616525"><b>Basic Information</b></span> page.</li><li id="nosql_02_0005__li9743125175616">&lt;<em id="nosql_02_0005__i163941855162910">DB_PORT</em>&gt; indicates the port number. The default value is 8635 and cannot be changed.</li><li id="nosql_02_0005__li10747135112566">&lt;<em id="nosql_02_0005__i14776204133013">DB_USER</em>&gt; indicates the database account name. The default value is <strong id="nosql_02_0005__b18120171635419">rwuser</strong>.</li></ul>

View File

@ -4,9 +4,12 @@
<div id="body8662426"><div class="section" id="nosql_02_0009__en-us_topic_0221158680_section46429645141251"><h4 class="sectiontitle">Scenarios</h4><p id="nosql_02_0009__en-us_topic_0221158680_p127651481575">You can use an <span id="nosql_02_0009__text1686619140715">ECS</span><span id="nosql_02_0009__text288521710710"></span> or local device to connect to a <span id="nosql_02_0009__text1393835471918">GeminiDB</span> instance over a public network.</p> <div id="body8662426"><div class="section" id="nosql_02_0009__en-us_topic_0221158680_section46429645141251"><h4 class="sectiontitle">Scenarios</h4><p id="nosql_02_0009__en-us_topic_0221158680_p127651481575">You can use an <span id="nosql_02_0009__text1686619140715">ECS</span><span id="nosql_02_0009__text288521710710"></span> or local device to connect to a <span id="nosql_02_0009__text1393835471918">GeminiDB</span> instance over a public network.</p>
<p id="nosql_02_0009__en-us_topic_0221158680_p1112805719352">This section describes how to use a Linux <span id="nosql_02_0009__text73880273711">ECS</span><span id="nosql_02_0009__text139473291778"></span> to connect to a <span id="nosql_02_0009__text615711117209">GeminiDB Cassandra</span> instance over a public network.</p> <p id="nosql_02_0009__en-us_topic_0221158680_p1112805719352">This section describes how to use a Linux <span id="nosql_02_0009__text73880273711">ECS</span><span id="nosql_02_0009__text139473291778"></span> to connect to a <span id="nosql_02_0009__text615711117209">GeminiDB Cassandra</span> instance over a public network.</p>
</div> </div>
<div class="section" id="nosql_02_0009__section2038518412128"><h4 class="sectiontitle">Prerequisites</h4><ul id="nosql_02_0009__ul16851511181213"><li id="nosql_02_0009__li88517115122">Bind an <span id="nosql_02_0009__text135617373811">EIP</span><span id="nosql_02_0009__text48873422811"></span> to the <span id="nosql_02_0009__text83081120152016">GeminiDB Cassandra</span> instance node and set security group rules.</li><li id="nosql_02_0009__li16851211101216">Create an <span id="nosql_02_0009__text39343577714">ECS</span><span id="nosql_02_0009__text136831201187"></span> running Linux. For details, see "Creating <span id="nosql_02_0009__text17560519781">ECS</span><span id="nosql_02_0009__text336715221819"></span>s" in <em id="nosql_02_0009__i772014291347"><span id="nosql_02_0009__text15671023993">ECS</span><span id="nosql_02_0009__text9681923891"></span> User Guide</em>.</li><li id="nosql_02_0009__li6851181116124">Obtain the Cassandra client installation package from the Cassandra official website.</li><li id="nosql_02_0009__li81904414417">Before using this tool, install the Python dependency package <a href="https://pypi.org/project/cassandra-driver/" target="_blank" rel="noopener noreferrer">cassandra-driver</a> 3.11.0 or later.</li></ul> <div class="section" id="nosql_02_0009__section2038518412128"><h4 class="sectiontitle">Prerequisites</h4><ul id="nosql_02_0009__ul16851511181213"><li id="nosql_02_0009__li88517115122">Bind an <span id="nosql_02_0009__text135617373811">EIP</span><span id="nosql_02_0009__text48873422811"></span> to the <span id="nosql_02_0009__text83081120152016">GeminiDB Cassandra</span> instance node and set security group rules.</li><li id="nosql_02_0009__li16851211101216">Create an <span id="nosql_02_0009__text39343577714">ECS</span><span id="nosql_02_0009__text136831201187"></span> running Linux. For details, see "Creating <span id="nosql_02_0009__text17560519781">ECS</span><span id="nosql_02_0009__text336715221819"></span>s" in <em id="nosql_02_0009__i772014291347"><span id="nosql_02_0009__text15671023993">ECS</span><span id="nosql_02_0009__text9681923891"></span> User Guide</em>.</li><li id="nosql_02_0009__li65523118612">Obtain the <a href="https://archive.apache.org/dist/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz" target="_blank" rel="noopener noreferrer">Cassandra client installation package 3.11.3</a> from the official website.</li><li id="nosql_02_0009__li81904414417">If Python is not installed, download and install <a href="https://www.python.org/ftp/python/2.7.16/Python-2.7.16.tgz" target="_blank" rel="noopener noreferrer">Python 2.7</a> and <a href="https://pypi.org/project/cassandra-driver/" target="_blank" rel="noopener noreferrer">cassandra-driver</a> 3.11.0 or later.</li></ul>
</div> </div>
<div class="section" id="nosql_02_0009__en-us_topic_0221158680_section11470653104612"><h4 class="sectiontitle">Connecting to a DB Instance Through a Cassandra Client</h4><ol id="nosql_02_0009__en-us_topic_0221158680_o12386b3d9147482881ddfdfd9a3f787c"><li id="nosql_02_0009__li11874152715149"><span>Log in to the <span id="nosql_02_0009__text1594914139117">ECS</span><span id="nosql_02_0009__text15304141711118"></span>. For details, see the section "Logging In to an <span id="nosql_02_0009__text952162443715">ECS</span><span id="nosql_02_0009__text652516247375"></span>" in the <em id="nosql_02_0009__i052714242375">Elastic Cloud Server User Guide</em>.</span></li><li id="nosql_02_0009__en-us_topic_0221158680_li44786699134732"><span>Upload the Cassandra client installation package to <span id="nosql_02_0009__text7603282132">ECS</span><span id="nosql_02_0009__text435411113135"></span>.</span></li><li id="nosql_02_0009__en-us_topic_0221158680_li19981956102810"><span>Obtain the client tool cqlsh.</span></li><li id="nosql_02_0009__en-us_topic_0221158680_lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to the <span class="keyword" id="nosql_02_0009__keyword16862161145215">DB instance</span> in the directory where the cqlsh tool is located.</span><p><p id="nosql_02_0009__en-us_topic_0221158680_p58615126331"><strong id="nosql_02_0009__en-us_topic_0221158680_b31651050133819">./cqlsh</strong> &lt;<em id="nosql_02_0009__en-us_topic_0221158680_i11661450153816">DB_HOST</em>&gt; &lt;<em id="nosql_02_0009__en-us_topic_0221158680_i19166195013811">DB_PORT</em>&gt; <strong id="nosql_02_0009__en-us_topic_0221158680_b5166135003817">-u</strong> &lt;<em id="nosql_02_0009__en-us_topic_0221158680_i316615063813">DB_USER</em>&gt;</p> <div class="section" id="nosql_02_0009__en-us_topic_0221158680_section11470653104612"><h4 class="sectiontitle">Connecting to a DB Instance Through a Cassandra Client</h4><ol id="nosql_02_0009__en-us_topic_0221158680_o12386b3d9147482881ddfdfd9a3f787c"><li id="nosql_02_0009__li11874152715149"><span>Log in to the <span id="nosql_02_0009__text1594914139117">ECS</span><span id="nosql_02_0009__text15304141711118"></span>. For details, see the section "Logging In to an <span id="nosql_02_0009__text952162443715">ECS</span><span id="nosql_02_0009__text652516247375"></span>" in the <em id="nosql_02_0009__i052714242375">Elastic Cloud Server User Guide</em>.</span></li><li id="nosql_02_0009__li44786699134732"><span>Upload the Cassandra client installation package 3.11.3 to the ECS. If Wget fails to be downloaded, download it to your local PC and then upload it to the ECS.</span><p><p id="nosql_02_0009__p5999419227">wget https://archive.apache.org/dist/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz</p>
<p id="nosql_02_0009__p1327863919596">tar -zxvf apache-cassandra-3.11.3-bin.tar.gz</p>
</p></li><li id="nosql_02_0009__en-us_topic_0221158680_li19981956102810"><span>Obtain the client tool cqlsh.</span><p><p id="nosql_02_0009__p5985255418">cd apache-cassandra-3.11.3/bin</p>
</p></li><li id="nosql_02_0009__en-us_topic_0221158680_lf50bb4c0b07747cfac89f74cc2b28b4a"><span>Connect to the <span class="keyword" id="nosql_02_0009__keyword16862161145215">DB instance</span> in the directory where the cqlsh tool is located.</span><p><p id="nosql_02_0009__en-us_topic_0221158680_p58615126331"><strong id="nosql_02_0009__en-us_topic_0221158680_b31651050133819">./cqlsh</strong> &lt;<em id="nosql_02_0009__en-us_topic_0221158680_i11661450153816">DB_HOST</em>&gt; &lt;<em id="nosql_02_0009__en-us_topic_0221158680_i19166195013811">DB_PORT</em>&gt; <strong id="nosql_02_0009__en-us_topic_0221158680_b5166135003817">-u</strong> &lt;<em id="nosql_02_0009__en-us_topic_0221158680_i316615063813">DB_USER</em>&gt;</p>
<p id="nosql_02_0009__en-us_topic_0221158680_p14852035134">Example:</p> <p id="nosql_02_0009__en-us_topic_0221158680_p14852035134">Example:</p>
<p id="nosql_02_0009__en-us_topic_0221158680_p1857117560114"><strong id="nosql_02_0009__en-us_topic_0221158680_b18173152910121">./cqlsh 192.168.1.8 8635 -u rwuser</strong></p> <p id="nosql_02_0009__en-us_topic_0221158680_p1857117560114"><strong id="nosql_02_0009__en-us_topic_0221158680_b18173152910121">./cqlsh 192.168.1.8 8635 -u rwuser</strong></p>
<div class="note" id="nosql_02_0009__en-us_topic_0221158680_note21381431122218"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="nosql_02_0009__en-us_topic_0221158680_ul18138931152220"><li id="nosql_02_0009__en-us_topic_0221158680_li8735051125619"><em id="nosql_02_0009__i77716116323">&lt;DB_HOST&gt;</em> indicates the <span id="nosql_02_0009__text20183626161312"></span><span id="nosql_02_0009__text133910319135">EIP</span> of the node to be connected. Obtain the value from the <span class="uicontrol" id="nosql_02_0009__uicontrol59671057555"><b>EIP</b></span> column in the node list on the <span class="uicontrol" id="nosql_02_0009__uicontrol19683565516"><b>Basic Information</b></span> page.</li><li id="nosql_02_0009__en-us_topic_0221158680_li9743125175616"><em id="nosql_02_0009__i33414158321">&lt;DB_PORT&gt;</em> indicates the port number. The default value is <strong id="nosql_02_0009__b433481115520">8635</strong> and cannot be changed.</li><li id="nosql_02_0009__en-us_topic_0221158680_li10747135112566"><em id="nosql_02_0009__i573611180321">&lt;DB_USER&gt;</em> indicates the database account name. The default value is <strong id="nosql_02_0009__b18120171635419">rwuser</strong>.</li></ul> <div class="note" id="nosql_02_0009__en-us_topic_0221158680_note21381431122218"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="nosql_02_0009__en-us_topic_0221158680_ul18138931152220"><li id="nosql_02_0009__en-us_topic_0221158680_li8735051125619"><em id="nosql_02_0009__i77716116323">&lt;DB_HOST&gt;</em> indicates the <span id="nosql_02_0009__text20183626161312"></span><span id="nosql_02_0009__text133910319135">EIP</span> of the node to be connected. Obtain the value from the <span class="uicontrol" id="nosql_02_0009__uicontrol59671057555"><b>EIP</b></span> column in the node list on the <span class="uicontrol" id="nosql_02_0009__uicontrol19683565516"><b>Basic Information</b></span> page.</li><li id="nosql_02_0009__en-us_topic_0221158680_li9743125175616"><em id="nosql_02_0009__i33414158321">&lt;DB_PORT&gt;</em> indicates the port number. The default value is <strong id="nosql_02_0009__b433481115520">8635</strong> and cannot be changed.</li><li id="nosql_02_0009__en-us_topic_0221158680_li10747135112566"><em id="nosql_02_0009__i573611180321">&lt;DB_USER&gt;</em> indicates the database account name. The default value is <strong id="nosql_02_0009__b18120171635419">rwuser</strong>.</li></ul>