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

23 lines
4.0 KiB
HTML

<a name="mrs_01_2395"></a><a name="mrs_01_2395"></a>
<h1 class="topictitle1">Configuring the Password of the Default Account of a ClickHouse Cluster(for MRS 3.1.2)</h1>
<div id="body0000001292938592"><p id="mrs_01_2395__p119447381453">After a ClickHouse cluster is created, you can use the ClickHouse client to connect to the ClickHouse server. The default username is <strong id="mrs_01_2395__b476615453511">default</strong>.</p>
<p id="mrs_01_2395__p7944153811515">This section describes how to set ClickHouse username and password after a ClickHouse cluster is successfully created.</p>
<div class="note" id="mrs_01_2395__note683144842616"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_2395__ul716019595514"><li id="mrs_01_2395__li779111418818">This section applies to MRS 3.1.2.</li><li id="mrs_01_2395__li186165520523"><strong id="mrs_01_2395__b14263204794016">default</strong> is the default internal user of ClickHouse. It is an administrator user available only in normal mode (kerberos authentication disabled).</li></ul>
</div></div>
<div class="section" id="mrs_01_2395__section12359113417207"><h4 class="sectiontitle">Setting the ClickHouse Username and Password</h4><ol id="mrs_01_2395__ol1525414397242"><li id="mrs_01_2395__li67641755172310"><span>Log in to Manager and choose <strong id="mrs_01_2395__b11809735113818">Cluster</strong> &gt; <strong id="mrs_01_2395__b208151935193816">Services</strong> &gt; <strong id="mrs_01_2395__b1681517352388">ClickHouse</strong>. Click the <strong id="mrs_01_2395__b7815335113820">Configurations</strong> tab and then <strong id="mrs_01_2395__b98151135143816">All Configurations</strong>.</span></li><li id="mrs_01_2395__li1862011518385"><span>Search for the <strong id="mrs_01_2395__b0580101218613">users.default.password</strong> parameter in the search box and change its password, as shown in <a href="#mrs_01_2395__fig42238424419">Figure 1</a>.</span><p><div class="fignone" id="mrs_01_2395__fig42238424419"><a name="mrs_01_2395__fig42238424419"></a><a name="fig42238424419"></a><span class="figcap"><b>Figure 1 </b>Changing the default user password</span><br><span><img id="mrs_01_2395__image12223342194110" src="en-us_image_0000001296059672.png"></span></div>
</p></li><li id="mrs_01_2395__li4269903251"><span>Log in to the node where the client is installed and run the following command to switch to the client installation directory.</span><p><p id="mrs_01_2395__p1526916017259"><strong id="mrs_01_2395__b139183146593">cd</strong><em id="mrs_01_2395__i1719519206592">Cluster client installation directory</em></p>
</p></li><li id="mrs_01_2395__li172699012517"><span>Run the following command to configure environment variables:</span><p><p id="mrs_01_2395__p172694017259"><strong id="mrs_01_2395__b16269180122520">source bigdata_env</strong></p>
</p></li><li id="mrs_01_2395__li18219106430"><span>Log in to ClickHouse using the new password.</span><p><p id="mrs_01_2395__p1814516227242"><strong id="mrs_01_2395__b12696501136">clickhouse client --host </strong><em id="mrs_01_2395__i202735501238">IP address of the ClickHouse instance</em> <strong id="mrs_01_2395__b1428513741"> --user </strong><em id="mrs_01_2395__i3519241443">default </em><strong id="mrs_01_2395__b1612131618420">--password</strong> <em id="mrs_01_2395__i1916115717572">xxx</em></p>
<div class="note" id="mrs_01_2395__note9203817122417"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_2395__p122031117192410">To obtain the service IP address of the ClickHouse instance, choose <strong id="mrs_01_2395__b17301711115815">Components</strong> &gt; <strong id="mrs_01_2395__b373014118586">ClickHouse</strong> &gt; <strong id="mrs_01_2395__b973017115584">Instances</strong> on the cluster details page.</p>
</div></div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24251.html">User Management and Authentication</a></div>
</div>
</div>