Kafka集群与Flume整合应用实战--Flume采集日志写入Kafka
一、Flume的安装配置去Flume官网下载Flume安装包,我下载的版本为apache-flume-1.9.0-bin.tar.gz,解压。(1)修改flume-env.sh。Flume运行在JVM之上,因此安装之前要确保系统安装了JDK,编辑环境配置文件,执行命令如下:mv flume-env.sh.template ./flume-env.shvim flume-env.shexport JAVA_HOME=/opt/java/jdk1.8.0_144(2)设置系统环境变量。将flume