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 (to have enough RAM for channel and source use)
Disk Space-sufficient disk Space for configurations used by channels or sinks (requires enough memory if channel is file type)
Directory permissions-read/write Permissions for directories used by agent (related folders have permission to read and write)
(2) configuration and installation of the environment
1. Install the JDK:
Download JDK
Unzip to/OPT.
Configure Java into system environment variables: Vim ~/.bash_profile, edit environment variables, source ~/.bash_profile let configuration take effect
Export JAVA_HOME=JDK Decompression Path
Export path= $JAVA _home/bin: $PATH
Verification: Java-version
2. Download flume
Download JDK
Unzip to/OPT.
Configure flume to the system environment variable: Vim ~/.bash_profile, after editing the environment variable, the source ~/.bahs_profile let the configuration take effect
Export Flume_home=flume Decompression Path
Export path= $FLUME _home/bin: $PATH
Configure Flume
CD $FLUME _home/conf/, there will be 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 the # Export Java_home, as an example, configure the Java_home address in the configuration file
Detection
Flume-ng version
Flume Environment Deployment