Installing a Client
Flink uses a Windows environment for development. It is recommended that the running environment be deployed on a Linux OS because the MRS client cannot be installed in a Windows environment. Perform the following operations to configure the client.
Procedure
- Install the Flink client.
- Ensure that the Flink component has been installed on a server.
- Download a Flink client program.
- Log in to .
- Choose Service > Flink > Download Client, set Client Type to All client files, set Download to to Server, and click OK to download the client to the server.
- Run the following commands to decompress the MRS_Flink_Client.tar client installation package:
tar -xvf /tmp/MRS-client/MRS_Flink_Client.tar
tar -xvf /tmp/MRS-client/MRS_Flink_ClientConfig.tar
- Go to the directory (/tmp/MRS-client/MRS_Flink_ClientConfig) where the client installation package is decompressed, run the ./install.sh#{client_install_home} command to install the client.
Example: ./install.sh /opt/flinkclient
If Kerberos authentication is enabled for the cluster and you need to use the client on a node outside the cluster, add the IP address of the node where the client is located to the jobmanager.web.allow-access-address configuration item in the Flink configuration file flink-conf.yaml of the client. If Kerberos authentication is not enabled for the cluster, you do not need to modify this configuration item.
- Configure network connections for the client.
If the host where the client is installed is not a node in the cluster, configure network connections for the client to prevent errors when you run commands on the client.
- Confirm that the client can communicate with each host.
- Add the mapping between the server host name and IP address to the hosts file on the client.
- If the yarn-client mode is used, add the mapping between the client host name and IP address to the hosts file on the ResourceManager node of YARN.
The file path is /etc/hosts on Linux and C:\Windows\System32\drivers\etc\hosts on Windows.
- Verify the consistency of time between the client and the cluster. Ensure that the difference between the client time and the Flink cluster time is less than 5 minutes.
- Verify that the configuration items in the Flink client configuration file flink-conf.yaml are correctly configured.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.