Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Deployment of Flume environment

Shulou Source: shulou.com Published: 2022-06-03 05:02:37 11月25日 Update

Document location:

Http://flume.apache.org/FlumeUserGuide.html#system-requirements

Java Runtime Environment-Java 1.8 or later (JAVA version must be 1.8 or higher)

Memory-Sufficient memory for configurations used by sources, channels or sinks (need enough memory for channel and source)

Disk Space-Sufficient disk space for configurations used by channels or sinks (sufficient memory is required if Channel is of type File)

Directory Permissions-Read/Write permissions for directories used by agent (related folders must have read and write permissions)

(2) configuration and installation of the environment

1. Install jdk:

Download jdk

Extract to / opt

Configure java into the system environment variable: vim ~ / .bash_profile, edit the environment variable, and source ~ / .bash_profile let the configuration take effect.

Export JAVA_HOME=JDK decompression path

Export PATH=$JAVA_HOME/bin:$PATH

Authentication: java-version

two。 Download Flume

Download jdk

Extract to / opt

Configure Flume into the system environment variable: vim ~ / .bash_profile. After editing the environment variable, source ~ / .bahs_profile makes the configuration take effect.

Export FLUME_HOME=FLUME decompression path

Export PATH=$FLUME_HOME/bin:$PATH

Configure flume

Cd $FLUME_HOME/conf/, will have flume-env.sh.temlate in the conf directory

Cp flume-env.sh.template flume-env.sh

Vim flume-env.sh

In flume-env.sh, you can see # export JAVA_HOME, as an example, configure the JAVA_HOME address in the configuration file

Detection

Flume-ng version

Tags: Configuration environment variable lieutenant general memory file system path location example address folder document permission version directory type detection verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Tech Info Linux macOS Shulou Information