Flume configuration
Flume can be fully configured using the flume configuration file. A single image speaks more than thousand words, so we will like to explain Flume configuration using the following figure. An exhaustive flume configuration is out of scope of this book, but will explain some core aspects of how the flume can be configured and this can be base for understanding a full-fledged configuration.
Figure 17: Flume Configuration Tree (sample)
The next code block shows the preceding configuration tree figure:
# Active Flume Components flumeAgent1.sources=source1 flumeAgent1.channels=channel1 flumeAgent1.sinks=sink1 # Define and Configure Source 1 flumeAgent1.sources.source1.type=netcat flumeAgent1.sources.source1.channels=channel1 flumeAgent1.sources.source1.bind=127.0.0.1 flumeAgent1.sources.source1.port=10010 # Define and Configure Sink 1 flumeAgent1.sinks.sink1.type=logger flumeAgent1.sinks.sink1.channels=channel1 # Define and Configure Channel 1 flumeAgent1.channels.channel1...