Configuring the Default ClickHouse User Password (MRS 3.1.2-LTS)
After a ClickHouse cluster is created, you can use the ClickHouse client to connect to the ClickHouse server. The default username is default.
This section describes how to set ClickHouse username and password after a ClickHouse cluster is successfully created.
- This section applies to MRS 3.1.2.
- The default user is the ClickHouse administrator user that can be used only in normal mode (kerberos authentication is disabled).
Configuring the Password of the Default Account of a ClickHouse Cluster
- Log in to Manager and choose Cluster > Services > ClickHouse. Click the Configurations tab and then All Configurations.
- Search for the users.default.password parameter in the search box and change its password, as shown in Figure 1.
- Log in to the node where the client is installed and run the following command to switch to the client installation directory.
cdCluster client installation directory
- Run the following command to configure environment variables:
source bigdata_env
- Log in to ClickHouse using the new password.
clickhouse client --host IP address of the ClickHouse instance--user default --password
Enter the user password.
To obtain the IP address of the ClickHouse instance, choose Components > ClickHouse > Instances on the cluster details page.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot