flume采集数据及环境配置
Flume采集数据的工作图
Flume采集数据的工作流程
Flume配置过程
[root@node1 ~]# pwd
/opt/software/
[root@node1 software]# tar -zxvf apache-flume-1.8.0-bin.tar.gz -C /opt/app/
[root@node1 software]# pwd
/opt/app/
[root@node1 app]# mv apache-flume-1.8.0-bin/ flume-1.8.0
vi /etc/profile
{
export FLUME_HOME=/opt/app/flume-1.8.0
export PATH=$PATH:$FLUME_HOME/bin
}
source /etc/profile
[root@node1 conf]# pwd
/opt/app/flume-1.8.0/conf
[root@node1 conf]# mv flume-env.sh.template flume-env.sh
[root@node1 conf]# vi flume-env.sh
export JAVA_HOME = /opt/app/jdk1.8.0_321
[root@node1 bin]# pwd
/opt/app/flume-1.8.0/bin
[root@node1 bin]# vi flume-ng
JAVA_OPTS="-Xmx1024m" // 意思是调整flume占用1024内存
本文来自博客园,作者:jsqup,转载请注明原文链接:https://www.cnblogs.com/jsqup/p/16553885.html