1. Install the JDK.
2. Download the decompression flume, modify the bin/netcat-memory-logger.conf, the content is as follows:
agent1.sources = Sources1agent1.channels = Channels1 Agent1.sinks = Sinks1agent1.sources.sources1.type = Netcatagent1.sources.sources1.bind = Localhostagent1.sources.sources1.port = 44444agent1.channels.channels1.type = memoryagent1.channels.channels1.capacity = 1000agent1.channels.channels1.transactioncapacity = 100agent1.sinks.sinks1.type = Loggeragent1.sources.sources1.channels = Channels1agent1.sinks.sinks1.channel = Channels1
3. Start Flume-ng
Bin/flume-ng agent--conf conf--conf-file bin/netcat-memory-logger.conf--name Agent1-dflume.root.logger=info, Console
4. Then open a Shell terminal window, Telnet configuration on the listening port, you can send a message to see the effect, the Flume terminal window will print out the information at this time, indicating success.
Reference:
Flume NG Introduction and Configuration Combat
Flume (NG) Architecture design Essentials and configuration practices
Flume-ng installation and simple use examples