Preparing a ClickHouse Application Running Environment
Configuration Files of the Running Environment
During the development or a test run of the program, you need to use cluster configuration files to connect to an MRS cluster. The configuration files usually contain cluster component information. You can obtain the required information from the created MRS cluster.
Nodes used for program debugging or running must be able to communicate with the nodes within the MRS cluster, and the hosts domain name must be configured.
- Scenario 1: Prepare the configuration files required for debugging in the local Windows development environment.
- Log in to FusionInsight Manager, and choose Cluster > Dashboard > More > Download Client. Set Select Client Type to Configuration Files Only, and click OK to download the client configuration file to the local PC. Decompress the download.
For example, if the client file package is FusionInsight_Cluster_1_Services_Client.tar, decompress it to obtain FusionInsight_Cluster_1_Services_ClientConfig_ConfigFiles.tar. Then, decompress FusionInsight_Cluster_1_Services_ClientConfig_ConfigFiles.tar
- Copy the hosts file content from the decompression directory to the hosts file of the local PC.
- If you need to debug the application in the local Windows environment, ensure that the local PC can communicate with the hosts listed in the hosts file.
- The local hosts file in a Windows environment is stored, for example, in C:\WINDOWS\system32\drivers\etc\hosts.
- Scenario 2: Prepare the configuration files required for running the program in a Linux environment.
- Install the client on a node. For example, the client installation directory is /opt/client.
- Check the network connection of the client node.
During the client installation, the system automatically configures the hosts file on the client node. You are advised to check whether the /etc/hosts file contains the host names of the nodes in the cluster. If they are not contained, manually copy the content in the hosts file in the decompression directory to the hosts file on the node where the client is deployed.
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