Preparing the Linux Client
Background
Install the Linux client to submit the topology.
Prerequisites
- The Storm component has been installed and is running correctly.
- Ensure that the difference between the client time and the cluster time is less than 5 minutes.
Procedure
- Download a Storm client program.
- Log in to MRS Manager.
- Choose Services > Storm > Download Client and select All client files to download the client program to a Remote host (target ECS).
- Log in to the target ECS downloaded from the client.
- In the Linux OS, run the following command to decompress the client package:
tar -xvf MRS_Storm_Client.tar
tar -xvf MRS_Storm_ClientConfig.tar
- Switch to MRS_Services_ClientConfig. Run the install.sh script to install the client and run the ./install.sh /opt/Storm_Client command to install the client to an empty folder. In the ./install.sh /opt/Storm_Client command, /opt/Storm_Client indicates the Storm installation directory, which must be an empty directory and must be an absolute path.
- Initialize the environment variables of the client.
Go to the installation directory /opt/Storm_Client, and run the following command to import environment variables:
source bigdata_env
- In the cluster with Kerberos authentication enabled, you need to apply for a human-machine user for security login.
- Obtain a human-machine user from the administrator for service authentication. For example: john.
The obtained user must belong to the storm group.
- Run the kinit command to log in to the system as the human-machine user.
Example:
kinit john
Enter the password as prompted. If no error message is displayed, Kerberos authentication is complete.
- Obtain a human-machine user from the administrator for service authentication. For example: john.
- Run the following command:
storm list
If the information about the running tasks of the storm cluster is correctly displayed, the client is installed successfully.
Last Article: Application Development Process
Next Article: Preparing the Windows Development Environment
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.