Updated on 2022-09-14 GMT+08:00

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

  1. Download a Storm client program.

    1. Log in to MRS Manager.
    2. Choose Services > Storm > Download Client and select All client files to download the client program to a Remote host (target ECS).

  2. Log in to the target ECS downloaded from the client.
  3. 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

  4. 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.
  5. 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

  6. In the cluster with Kerberos authentication enabled, you need to apply for a human-machine user for security login.

    1. Obtain a human-machine user from the administrator for service authentication. For example: john.

      The obtained user must belong to the storm group.

    2. Run the kinit command to log in to the system as the human-machine user.

      kinit Username

      Example:

      kinit john

      Enter the password as prompted. If no error message is displayed, Kerberos authentication is complete.

  7. 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.