平台组件安装
Flume 安装
解压
[root@master h3cu]# tar -zxvf apache-flume-1.6.0-bin.tar.gz -C /usr/src/ [root@master src]# mv apache-flume-1.6.0-bin flume
安装jdk1.8
这里使用之前1_hadoop 安装中的jdk 1.8
修改Flume配置文件
[root@master src]# cd /usr/src/flume/conf [root@master conf]# cp flume-conf.properties.template flume.conf agent.sources.seqGensrc.spoolDir = /home/hadoop/log agent.channels.memoryChannel.capacity = 1000 agent.channels.memoryChannel.transactionCapacity = 100 # 增加或修改如上属性 [root@master conf]# vi flume-env.sh export JAVA_HOME=/usr/local/src/jdk1.8.0_144
修改环境变量
[root@master flume]# vi /etc/profile export FLUME_HOME=/usr/src/flume export PATH=$PATH:$FLUME_HOME/bin [root@master flume]# source /etc/profile
启动
bin/flume-ng agent --conf conf --conf-file conf/flume.conf --name a1 -Dflume.root.logger=INFO,console