win7+ubuntu16.04+flume1.8.0
1. Download apache-flume-1.8.0-bin.tar.gz
Http://flume.apache.org/download.html
2. Unzip into the/usr/local/flume
3. Set the configuration file/etc/profile file to increase the path of flume
①vi/etc/profile
Export flume_home=/usr/local/flumeexport PATH= $PATH: $FLUME _home/bin
② make the configuration file effective immediately
Source/etc/profile
4. Check whether the flume environment is in effect
Flume-ng version
5. Add a example.conf file to the/etc/local/flume/conf
# example.conf:a single-node Flume configuration# Name The components in this agenta1.sources=r1a1.sinks=K1a1.channels=c1# Describe/Configure the Sourcea1.sources.r1.type=Netcata1.sources.r1.bind=Localhosta1.sources.r1.port=44444# Describe The Sinka1.sinks.k1.type=logger# use a channelwhichBuffers EventsinchMemorya1.channels.c1.type=memorya1.channels.c1.capacity= +a1.channels.c1.transactionCapacity= -# Bind The source and sink to the Channela1.sources.r1.channels=C1a1.sinks.k1.channel= C1
6. Start Flume
Flume-ng Agent--conf/usr/local/flume/conf--conf-file /usr/local/flume/conf/example.conf--name A1- Dflume.root.logger=info,console
7. Connect to flume and send data using Telnet
44444127.0. 0.1 ... Connected to Localhost.localdomain (127.0. 0.1 '^]'. HelloWorld! <ENTER>OK
8. The following information can be seen in the flume process
[Info-org.apache.flume.sink.loggersink.process (Loggersink.java: $ the - 0D Hello world!.}
Above.
Big Data Novice Road II: Installation Flume