To use Flume to collect logs, you must install the Flume client on a log host. You can create an ECS and install the Flume client on it.
This section applies to MRS 3.x or later clusters.
Log in to the FusionInsight Manager. Choose Cluster > Name of the target cluster > Services > Flume. On the Flume service page that is displayed, choose More > Download Client in the upper right corner and set Select Client Type to Complete Client to download the Flume service client file.
The file name of the client is FusionInsight_Cluster_<Cluster ID>_Flume_Client.tar. This section takes the client file FusionInsight_Cluster_1_Flume_Client.tar as an example.
Upload the software package to a directory, for example, /opt/client on the node where the Flume service client will be installed as user user.
user is the user who installs and runs the Flume client.
Log in to the node where the Flume service client is to be installed as user user. Go to the directory where the installation package is installed, for example, /opt/client, and run the following command to decompress the installation package to the current directory:
cd /opt/client
tar -xvf FusionInsight_Cluster_1_Flume_Client.tar
Run the sha256sum -c command to verify the decompressed file. If OK is returned, the verification is successful. Example:
sha256sum -c FusionInsight_Cluster_1_Flume_ClientConfig.tar.sha256
FusionInsight_Cluster_1_Flume_ClientConfig.tar: OK
tar -xvf FusionInsight_Cluster_1_Flume_ClientConfig.tar
cd /opt/client/FusionInsight_Cluster_1_Flume_ClientConfig/Flume/FlumeClient
./install.sh -d /opt/FlumeClient -f MonitorServerService IP address or host name of the role -c User service configuration filePath for storing properties.properties -s CPU threshold -l /var/log/Bigdata -e FlumeServer service IP address or host name -n Flume
JAVA_HOME is null in current user,please install the JDK and set the JAVA_HOME