Preparing the Connection Doris Cluster Configuration File
Preparing a Developer Account
If Kerberos authentication is not enabled for an MRS cluster, you need to prepare a user who has the permission to perform operations on related components for program authentication.
The following Doris permission configuration example is for reference only. You can adjust the permission configuration based on service requirements in actual service scenarios.
- Log in to the node where the MySQL client is installed and connect to the Doris service as user admin.
mysql -uadmin -PDatabase connection port -hDoris FE instance IP address
- The default password of the admin user is empty.
- The database connection port is the query connection port of the Doris FE. The default port is 29982. You can also log in to FusionInsight Manager, choose Cluster > Services > Doris > Configurations, and query the query_port parameter of the Doris service.
- To view the IP address of a Doris FE instance, log in to FusionInsight Manager of the MRS cluster and choose Cluster > Services > Doris > Instances.
- You can also use the MySQL connection software or Doris WebUI to connect to the database.
- Run the following command to create a role:
Create Role dorisrole;
- Run the following command to grant permissions to the role. For details, see Doris Permission Management. For example, to grant the ADMIN_PRIV permission to the role, run the following command:
GRANT ADMIN_PRIV ON *.*.* TO ROLE 'dorisrole';
- Run the following commands to create a user and bind the user to the role:
CREATE USER 'dorisuser'@'%' IDENTIFIED BY 'password' DEFAULT ROLE 'dorisrole';
There can be security risks if a command contains the authentication password. You are advised to disable the command recording function (history) before running the command.
Configuring the Operating Environment Network
Nodes used for program commissioning or running must communicate with nodes in the MRS cluster and the hosts domain name must be configured.
- Scenario 1: Configure the local Windows development environment to communicate with the MRS cluster nodes.
- Log in to FusionInsight Manager, click Download Client in the upper right corner of the Homepage, set Select Client Type to Configuration File Only, and click OK. After the client package is generated, download the client as prompted and decompress it.
For example, if the client configuration file package is FusionInsight_Cluster_1_Services_Client.tar, decompress the package to obtain FusionInsight_Cluster_1_Services_ClientConfig_ConfigFiles.tar. Then, decompress the package.
- Copy the content in the hosts file in the decompressed directory to the local hosts file.
- During application development, if you need to commission applications in the local Windows system, ensure that the local node can communicate with the hosts listed in the hosts file.
- For example, the local hosts file is stored in C:\WINDOWS\system32\drivers\etc\hosts on the Windows server.
- Log in to FusionInsight Manager, click Download Client in the upper right corner of the Homepage, set Select Client Type to Configuration File Only, and click OK. After the client package is generated, download the client as prompted and decompress it.
- Scenario 2: Configure the Linux environment to communicate with the MRS cluster nodes.
- Install the MRS cluster client on the node.
For example, the client installation directory is /opt/hadoopclient.
- Obtain the configuration file.
- Log in to FusionInsight Manager, click Download Client in the upper right corner of the Homepage, set Select Client Type to Configuration Files Only and click OK. Download the client configuration file to the active OMS node in the cluster.
- Log in to the active OMS node as the root user and go to the directory where the client configuration file is stored. The default directory is /tmp/FusionInsight-Client/.
For example, if the client software package is FusionInsight_Cluster_1_Services_Client.tar, the download path is /tmp/FusionInsight-Client on the active management node.
cd /tmp/FusionInsight-Client
tar -xvf FusionInsight_Cluster_1_Services_Client.tar
tar -xvf FusionInsight_Cluster_1_Services_ClientConfig_ConfigFiles.tar
cd FusionInsight_Cluster_1_Services_ClientConfig_ConfigFiles
- Check the network connection of the client node.
During the installation of the client, the system automatically configures the hosts file on the client nodes. You are advised to check whether the /etc/hosts file contains the host names of nodes in the cluster. If not, You need to manually copy the content in the hosts file in the decompressed directory to the hosts file on the node where the client is located to ensure that the local host can communicate with each host in the cluster.
- Install the MRS cluster client on the node.
What is your overall rating for this page?
Thank 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